API / Series/Area / AreaSeries

Defined in: src/types/chart/area.ts:48

Extends

Type Parameters

Type Parameter Default type
T MeaningfulAny

Properties

Property Type Description
color? string The main color of the series (hex, rgba)
cursor? string You can set the cursor to "pointer" if you have click events attached to the series, to signal to the user that the points and lines can be clicked.
data AreaSeriesData<T>[] -
dataLabels? object Options for the series data labels, appearing next to each data point.
dataLabels.allowOverlap? boolean Default false
dataLabels.enabled? boolean Enable or disable the data labels Default true
dataLabels.html? boolean Allows to use any html-tags to display the content. The element will be displayed outside the box of the SVG element. Default false
dataLabels.padding? number Default 5
dataLabels.style? Partial<BaseTextStyle> -
legend? ChartLegend & object Individual series legend options. Has higher priority than legend options in widget data
lineWidth? number Pixel width of the graph line. Default 1
marker? AreaMarkerOptions Options for the point markers of line in area series
name string The name of the series (used in legend, tooltip etc)
opacity? number Fill opacity for the area Default 0.75
stackId? string This option allows grouping series in a stacked chart
stacking? "percent" | "normal" Whether to stack the values of each series on top of each other. Possible values are undefined to disable, "normal" to stack by value or "percent" Default undefined
type "area" -
visible? boolean Initial visibility of the series
yAxis? number Y-axis index (when using two axes)