Y-Axis

In FusionTime, the yAxis object can be specified within the dataSource object of the FusionCharts constructor.

It will accept inputs in two forms - an array of yAxis objects or an array of Strings.

An example of array of yAxis objects is shown in the code below:

yAxis: [{
    plot: {
        value: 'Sales',
    },
}, {
    plot: {
        value: 'Shipping Cost',
    }
}],

Refer to the image below:

Y-axis

An array of strings is applicable when you want to provide different configurations for multiple canvases. Refer to the code below:

"yAxis": [{
    "plot": ["Sales", "Shipping Cost"]
}]

Refer to the chart below:

Loading data for chart…