In this article
Configure chart axes using code blocks for category and number axes. Define axis labels for primary and secondary axes to label them accordingly.
The axis properties in this code block can be chart type dependent. Here are examples of code to configure the chart axes:
axis category {
hide,
interval,
axisLine,
tickLine
}
axis number {
hide,
axisLine,
tickLine,
minValue,
maxValue,
isSecondary
}Note
To label primary and secondary axes, you can define the axis labels.
For example:
axis primary {
label {
value: "Y primary axis"
position: middle
}
}
axis secondary {
label {
value: "Y secondary axis"
position: middle
}
}
axis category {
label {
value: "X axis"
}
}This gives the labels shown below:
Example of primary and secondary axis labels
For details of the properties and settings, refer to widget chart in the CDL Reference Guide.