ZoomCharts Documentation
Version: 1.21.3 (2025-04-07)
Switch to Version 2.0 (BETA)
Switch to Version 2.0 (BETA)
Value axis
The value axis show the scale chart values.
Chart can have any number of value axis. Each value axis is identified by a string identifier.
To define value axis, use valueAxis section in settings:
valueAxis: { "myAxis": { position:"outside", side:"left", size: 45, style:{ valueLabel: {font: "11px Arial"}}, zeroLine: "center" }, "mySecondAxis":{ ... } }
By default the chart has a single value axis named "default" and all series are by default bound to it.
To bind a series to value axis, use series.valueAxis
property:
series: [ { ... valueAxis: "myAxis" .. } ]
Parameters
The main parameters for value axis are:
- enabled: true/false - shows/hides the value axis
- position: "inside"/"outside"
- side: "left"/"right"
- size: 45 - width of the axis in pixels
- hgrid: true/false - weather to display horizontal grid
- zeroLine: "visible"/"floating"/"center" - where to place the zero line
- logScale: false/true - switches between linear/logarithmic scale.
See API reference for full list of available parameters.