Chart components are built on ECharts. Install it as a dependency:
npm install echarts
For optimal bundle size, import only the ECharts components you need. The examples below show the minimum required imports for our use cases.
echarts.use([
BarChart,
LineChart,
PieChart,
AxisPointerComponent,
BrushComponent,
GridComponent,
TooltipComponent,
CanvasRenderer,
AriaComponent,
]);
Available Charts
Color System
Semantic
Categorical
Sequential
Legend
Use LegendItem to display chart series information with color
indicators.
LargeItem
Active State
Requests
1,234 req/s
Storage
56 GB
Warnings
128
Inactive State
Requests
1,234 req/s
Storage
56 GB
Warnings
128
SmallItem
Active State
Requests 1,234 req/s
Storage 56 GB
Warnings 128
Inactive State
Requests 1,234 req/s
Storage 56 GB
Warnings 128
Read latency
P99
124 ms
P95
76 ms
P75
32 ms