Skip to content

Axis

This option allows a more detailed configuration over the visualization axis.

1
2
3
4
5
var axis = {
    yAxis: {type: 'log'}, // or value
    xAxis: {label: 'Custom Axis Label'}
    }
myChart.set(axis)

A1

Logarithmic scale for Y axis and custom label for X axis. Each axis can be modified independently by specifying the name (xAxis / yAxis) and the configuration for that axis:

1
2
3
4
myChart.set('xAxis', { show: false }) // Hide the xAxis
myChart.set('yAxis', { min: 100, max: 5000}) // Set values for the metric axis grid
myChart.set('yAxis', { lines: false }) // Hide the horizontal gray lines of the grid
myChart.set('xAxis', { lines: false }) // Hide the vertical gray lines of the grid