ZoomCharts Documentation

Version: 1.21.4 (2025-05-13)
Switch to Version 2.0 (BETA)

Themes

Theme is a collection of configuration options that extends the default configuration.

Specifying theme

Theme is specified by setting settings.theme field.

Time chart provides several default themes to start with:

Custom theming

Pie Chart is 99% canvas based - the only part that is DOM is background, info popup and resizer.

DOM structure

The HTML structure has fixed class names you can use to define CSS rules. The root element has a configurable class, that is specified using settings.themeCSSClass setting.

Pie Chart uses the following HTML structure.

Style parameters in settings

We stay close to CSS syntax when defining style for rendered elements.

Some fields have custom attributes for element specific aspects. See Settings documentation for details.

Common attributes:

Text attributes:

Line attributes:

Color strings can be one of the following:

X