Skip to content

Interface: ChartSeriesOpts ​

Per-series style overrides for a chart. Each entry applies to the series at the same index in the data array. Unset fields fall back to the chart-level option.

Properties ​

color? ​

optional color?: string

Series fill / line color (hex, e.g. 'FF0000')


dataLabelColor? ​

optional dataLabelColor?: string

Data-label font color


dataLabelFontBold? ​

optional dataLabelFontBold?: boolean

Data-label font bold


dataLabelFontFace? ​

optional dataLabelFontFace?: string

Data-label typeface


dataLabelFontItalic? ​

optional dataLabelFontItalic?: boolean

Data-label font italic


dataLabelFontSize? ​

optional dataLabelFontSize?: number

Data-label font size (points)


dataLabelFormatCode? ​

optional dataLabelFormatCode?: string

Data-label number format code for this series. Overrides the chart-level dataLabelFormatCode for this series only.

Examples ​

ts
'#,##0' // thousands separator
ts
'0.00%' // shows values as '0.00%'
ts
'$0.00' // shows values as '$0.00'

lineSize? ​

optional lineSize?: number

Line/radar series line width (points). Pass 0 to hide the line.