<chart> Component
The <chart>
component creates data visualizations with clear configuration and data mapping.
<chart>
component creates data visualizations with clear configuration and data mapping.🛠Attributes
Attribute
Type
Required
Description
type
string
Yes
Chart type (bar
, line
, area
, pie
, donut
, scatter
)
title
string
No
Chart title
width
string
No
Chart width (e.g., 100%
, 600px
)
height
string
No
Chart height (e.g., 400px
)
theme
string
No
Color theme (light
, dark
, custom
)
Data Configuration
Chart Types and Their Specific Configurations
Bar Chart
Line Chart
Pie/Donut Chart
🧩 AI Interpretation Guidelines
Generate appropriate chart library initialization
Map data fields to chart dimensions
Apply styling and formatting
Handle interactions and tooltips
Support responsive sizing
Implement accessibility features
Generate appropriate legends and labels
Last updated