Theme action
Use this action with change({ id: 'Theme', context }).
Context
id?:Get|Update(Updateis assumed if omitted)backgroundColoraxis:{ gridLinesColor, textColor, crosshairColor, gridLinesStyle }fontSize:{ chart, xAxis, yAxis }(numbers in pixels)
Behavior
Theme supports:
-
Get: returns current theme values in the same shape asUpdatecontext. -
Update: applies provided theme values. -
backgroundColorsets chart background. -
axisapplies shared styling for both axes. -
axis.gridLinesColorandaxis.gridLinesStylealso apply to Y-axis minor grid lines. -
fontSizevalues are optional and can be set independently.