data
RequiredDescription
Chart data.
Type
Dict<any>[]Leave Yamada UI a star
StarAreaChart is a component for drawing area charts to compare multiple sets of data.
Description
Chart data.
Type
Dict<any>[]Description
The key of a group of data which should be unique in an chart.
Type
stringDescription
An array of objects with dataKey and color keys. Determines which data should be consumed from the data array.
Type
AreaProps[]Description
Props for the areas.
Type
Partial<AreaProps>Description
Props passed down to recharts AreaChart component.
Type
AreaChartPropsDescription
The visual color appearance of the component.
Type
"blackAlpha" | "whiteAlpha" | "amber" | "blue" | "info" | "link" | "primary" | "cyan" | "emerald" | "flashy" | "fuchsia" | "gray" | "green" | "success" | "indigo" | "lime" | "neutral" | "orange" | "warning" | "pink" | "purple" | "red" | "danger" | "rose" | "sky" | "teal" | "violet" | "secondary" | "yellow"Description
Determines whether points with null values should be connected.
Type
booleanDefault
trueDescription
Props passed down to recharts ResponsiveContainer component.
Type
ResponsiveContainerPropsDescription
Type of the curve.
Type
ChartCurveTypeDefault
`monotone`Description
Controls fill opacity of all areas.
Type
number | [number, number]Default
0.4Description
Specifies which lines should be displayed in the grid.
Type
ChartAxisTypeDefault
'x'Description
Props passed down to recharts 'CartesianGrid' component.
Type
GridPropsDescription
A function to format labels on inside the tooltip.
Type
(label: string) => stringDescription
Chart orientation.
Type
ChartLayoutTypeDefault
'horizontal'Description
Props passed down to recharts 'Legend' component.
Type
LegendPropsDescription
Reference lines that should be displayed on the chart.
Type
ReferenceLineProps[]Description
The size of the AreaChart.
Type
"sm" | "md" | "lg" | "full"Default
"full"Description
A tuple of colors used when type="split" is set, ignored in all other cases.
Type
[string, string]Default
'["red.400", "green.400"]'Description
Offset for the split gradient. By default, value is inferred from data and series if possible.
Must be generated from the data array with getSplitOffset function.
Type
numberDescription
Dash array for the grid lines and cursor. The first number is the length of the solid line section and the second number is the length of the interval.
Type
string | numberDefault
'5 5'Description
Stroke width for the chart areas.
Type
numberDefault
2Description
If any two categorical charts have the same syncId, these two charts can sync the position tooltip, and the startIndex, endIndex of Brush.
Type
string | numberDescription
The option is the configuration of tick lines.
Type
ChartAxisTypeDefault
'y'Description
Specifies the duration of animation, the unit of this option is ms.
Type
numberDefault
0Description
Props passed down to recharts 'Tooltip' component.
Type
TooltipPropsDescription
Controls how chart areas are positioned relative to each other.
Type
AreaChartTypeDefault
`default`Description
Unit displayed next to each tick in y-axis.
Type
stringDescription
A function to format values on inside the tooltip.
Type
(value: any) => stringDescription
The variant of the AreaChart.
Type
stringDescription
Determines whether activeDots should be displayed.
Type
booleanDefault
trueDescription
Determines whether dots should be displayed.
Type
booleanDefault
trueDescription
Determines whether the chart area should be represented with a gradient instead of the solid color.
Type
booleanDescription
If true, legend is visible.
Type
booleanDefault
falseDescription
If true, tooltip is visible.
Type
booleanDefault
trueDescription
If true, X axis is visible.
Type
booleanDefault
trueDescription
If true, Y axis is visible.
Type
booleanDefault
trueDescription
A label to display below the X axis.
Type
stringDescription
Props passed down to recharts 'XAxisLabel' component.
Type
LabelPropsDescription
Props passed down to recharts 'XAxis' component.
Type
XAxisPropsDescription
A function to format X axis tick.
Type
(value: any) => stringDescription
A label to display below the Y axis.
Type
stringDescription
Props passed down to recharts 'YAxisLabel' component.
Type
LabelPropsDescription
Props passed down to recharts 'YAxis' component.
Type
YAxisPropsDescription
A function to format Y axis tick.
Type
(value: any) => stringType
DotPropsType
UIValue<"border" | ({} & string) | Color | "amber.50" | "amber.100" | "amber.200" | "amber.300" | "amber.400" | "amber.500" | "amber.600" | "amber.700" | "amber.800" | "amber.900" | ... 318 more ... | "yellow.950">Type
Partial<AreaProps>Type
DotPropsType
DotPropsEdit this page on GitHub