Y-Axis
In FusionTime, the yAxis
object can be specified within the dataSource
object of the FusionCharts constructor.
Refer to the image below:
The yaxis
object accepts input in two forms of an array.
- Array of objects
- Array of strings
An example of an array of objects is shown in the code below:
"yAxis": [{
"plot": {
"value": "Sales",
},
}, {
"plot": {
"value": "Quantity",
},
}, {
"plot": {
"value": "Shipping Cost",
},
}],
In the above code an array has been created with two objects specifying Y-axes of canvases in a chart.
An example of an array of strings is shown in the code below:
"yAxis": [{
"plot": ["Sales", "Quantity", "Shipping Cost"]
}]
In the above code an array has been created with two strings specifying y-axis of canvases in a chart.
Refer to the chart below:
Loading data for chart…