ZoomCharts Documentation
Version: 1.21.20 (2026-09-08)
Switch to Version 2.0 (BETA)
Switch to Version 2.0 (BETA)
GradientDefinition
GradientDefinition is an ordered array of gradient stops. Each stop is a
[position, color] tuple:
positionis a number interpreted according to the gradient mode of the setting.coloris a CSS color string.
var gradient = [[0, "#ffffff"], [0.5, "#66aaff"], [1, "#004499"]];