Chart
Beautiful charts built with SVG.
Preview
A preview of the Chart component with interactive controls.
Chart visualization would render here with your data
Interactive
Installation
Add the Chart component to your project.
ng g @ng-cn/core:c chartUsage
Import and use the Chart component in your Angular application.
<Chart [data]="chartData" type="bar" />Examples
Explore different variations and use cases for the Chart component.
Basic
Interactive
API Reference
Props | Prop | Type | Default | Description |
|---|---|---|---|
data | ChartData[] | — | The chart data. |
type | 'bar' | 'line' | 'pie' | 'area' | — | The type of chart. |
config | ChartConfig | — | The chart configuration. |