Charts are powerful tools for visualizing data. They help users understand trends, patterns, and relationships in complex datasets at a glance.
To use the Astra Chart component, add the <astra-composed-chart>
tag to your HTML:
<astra-composed-chart
type="line"
data={stocksData}
keyX="Date"
keyY="Close"
width={600}
height={400}
header="Stock Prices"
subheader="Daily closing prices"
/>
The Astra Chart component offers various customization options:
Choose from different chart types using the type
attribute: line, bar, column, scatter, and area.
Adjust the chart's appearance with attributes like width
, height
,
header
, and
subheader
.
Specify data keys using keyX
and
keyY
attributes.
Astra Charts are designed with accessibility in mind: