Skip to main content

Theme Properties

Theme properties may be used to set common colors across many properties in each component instance.

By default, any color prop defined on the chart, an axis, pen, or interaction will override the props listed below. See each property description for more information.

Tip: In order to easily maintain themes across all instances, bind matching session props to the theme object.

NameDescriptionProperty Type
axisBorderColorThe color of the axes borders.Color open_in_new.png
axisLabelColorThe color of the axes ticks and associated labels.Color open_in_new.png
axisTitleColorThe color of the axes titles.Color open_in_new.png
chartBackgroundThe color of the chart background. This property is completely CSS compatible.Color open_in_new.png
chartTitleColorThe color of the chart title.Color open_in_new.png
highlightFillThe fill color of the axis highlight for all interactions with the axis highlight functionality, as well as the zoom to area interaction area and range brush area.Color open_in_new.png
highlightStrokeThe stroke color of the axis highlight for all interactions with the axis highlight functionality, as well as the zoom to area interaction area and range brush area.Color open_in_new.png
legendBackgroundThe color of the chart built-in legend background.Color open_in_new.png
legendForegroundThe color of the chart built-in legend foreground.Color open_in_new.png
loadingBackgroundThe color of the loading animation background.Color open_in_new.png
loadingForegroundThe color of the loading animation foreground.Color open_in_new.png
majorGridLineStrokeThe stroke color of the axis major gridlines.Color open_in_new.png

minorGridLineStroke

The stroke color of the axis minor gridlines.Color open_in_new.png

penColumnFill

The fill color of the Column type pen.Color open_in_new.png

penColumnStroke

The stroke color of the Column type pen.Color open_in_new.png
penGradientFill

The default gradient for any pen type with the fill property defined by an array of gradient stops.

 

This property only takes precedence over a default pen fill when the pen instance fill.gradient.gradientStops has a length of zero and the pen instance fill.color property is deleted from the property tree.

PenGradientStop[] open_in_new.png
penLineStrokeThe stroke color of the Line and Spline type pens.Color open_in_new.png
penMountainFillThe fill color of the Mountain and MountainSpline type pens.Color open_in_new.png
penMountainStrokeThe stroke color of the Mountain and MountainSpline type pens.Color open_in_new.png

textAnnotationFill

The color of the measurement and annotation infoBox background, as well as the x-trace tooltip fill and annotation dot fill.Color open_in_new.png

textAnnotationStroke

The color of the measurement and annotation infoBox foreground including text and border, as well as the x-trace tooltip stroke, measurement and annotation lines, and annotation dot outline.

Color open_in_new.png
traceStrokeThe stroke color for the xTrace interaction crosshairs and line.Color open_in_new.png