Charts / React engineering charts / Hierarchy
Flame graph
A sampled call tree as nested bars sized by CPU time, so the hot paths through a service are obvious and one click zooms into any frame.
React component FlameGraph, data through props. Trees and nesting: treemaps, call stacks, clusters. Tags: flame-graph, profiler, call-stack, cpu, icicle, performance, zoom.
Install
npm i klar-charts
import 'klar-charts/styles.css'
import { ThemeScope, FlameGraph } from 'klar-charts'
# or copy the source:
npx shadcn@latest add https://klar.run/r/tech-flame-graph.json
Usage
<FlameGraph
root={flameProfile}
orientation={o}
format={(v) => `${fmt.int(v)} · ${(v / 100).toFixed(2)} s`}
ruler={(v) => `${(v / 100).toFixed(v % 100 ? 1 : 0)} s`}
/>
Related flame graph charts
- Market treemap: Every stock in an index as a tile sized by market cap and coloured by its daily move, grouped into sectors with their weighted change.
- Chord diagram: Traffic between eight regions as ribbons whose two ends show each direction, so heavy and lopsided pairs stand out at once.
- Network graph: A service call graph laid out by a seeded force simulation, with communities coloured and hubs sized by degree, to show who depends on whom.
- Dependency Gantt: A project plan with finish-to-start arrows and the computed critical path, so you can see which late task moves the launch date.
- Multi-level Sankey: Any acyclic flow laid out in columns; here a cloud bill traced from account to service to team to product, with the untagged leak flagged.
- Radial dendrogram: A hierarchy drawn as a radial cluster tree with every leaf on the outer ring, for taxonomies and clustering results too wide for a flat…