ChartStyleOptions
Basic style options for a chart.
Properties
backgroundColor?
optionalbackgroundColor:string
Background color for chart. Defaults to #FFFFFF. You can also use the .vjs-chart-background css class to set this.
crosshairColor?
optionalcrosshairColor:string
What color to draw crosshairs
gridLineColor?
optionalgridLineColor:string
What color to draw gridlines. Defaults to #AAAAAA.
labelColor?
optionallabelColor:string
Color for labels, defaults to #000000. Can be overridden in axis definitions via the labelColor property.
labelColorGenerator()?
optionallabelColorGenerator: (v,idx) =>string
Optional function invoked to compute a custom color for a given label
Parameters
v
number
idx
number
Returns
string
legendBackgroundColor?
optionallegendBackgroundColor:string
Background color for the legend.
legendOutlineColor?
optionallegendOutlineColor:string
What color to draw as outline for the legend
legendOutlineWidth?
optionallegendOutlineWidth:number
Width of the legend outline
plotBackgroundColor?
optionalplotBackgroundColor:string
Background color for chart's plot area. Defaults to being the same as the value calculated for backgroundColor. You can also use the .vjs-chart-plot-background css class to set this.