ZoomCharts Documentation

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

Style

Each series configuration can have a style tag that determines the rendering of the series.

There are three types of series rendering: "columns", "line" and "candlestick". Each type has a slightly different options available.

Please see chartTypes section in the API reference / Settings for available fields and their default values.

Time chart currently has no support for dynamic style functions. It might be added in future versions.

Column colors

Bound to values example: [[-20, 'rgba(0,0,255,0.4)'],[30,'rgba(255,0,0,0.7)']]

If fillGradientMode is set to "vertical" or "horizontal" then gradient is bound to fraction instead of actual values, meaning that array value should be in interval from 0 to 1. Example with fraction: [[0,"black"],[0.5,"red"],[1, "orange"]]

Columns with custom gradient: tc-style-columns-gradient-custom

Columns with gradient and automatic cylinder shape in horizontal orientation: tc-style-columns-gradient-cylinder-horizontal

Columns with gradient in vertical orientation: tc-style-columns-gradient-vertical

Line and Area colors

An example of how to set series style:

    series : [
        {
            name:"Max temperature",
            id:"series1",
            type:"line",
            data:{
                index: 1,
            },
            style:{
                fillColor:"red",
                //fillGradient:[[-20,"rgba(0,0,255,0.4)"],[30,"rgba(255,0,0,0.7)"]]
            }
        }
    ]
X