Carbon µPlot

Latency distribution — default color

Latency distribution — custom color

Latency distribution — default color


import { createHeatmap } from 'carbon-uplot';

const BUCKET_LABELS = ['0–10ms', '10–25ms', '25–50ms',
  '50–100ms', '100–250ms', '250–500ms', '500ms+'];

createHeatmap(el, {
  data: [timestamps, ...buckets],
  bucketLabels: BUCKET_LABELS,
});

Latency distribution — custom color


import { createHeatmap } from 'carbon-uplot';

createHeatmap(el, {
  data: [timestamps, ...buckets],
  bucketLabels: BUCKET_LABELS,
  color: '#3ddbd9',
});