Radar charts support unlimited number of axes. You add as many Axis instances as you want to see on the radar:
JavaScript Copy Code |
---|
for (var i = 0; i < 8; i++) { |
Labels on radar chart axes are set with the title property of the axes. If you don't want a label just leave an empty string.
The labels on the scale of the main radar axes depend on the intervals. You set them this way:
JavaScript Copy Code |
---|
radarChart.defaultAxis.minValue = 0; |
In case you don't want labels on this default axis just hide them:
JavaScript Copy Code |
---|
radarChart.showCoordinates = false; |
By default each axis shows its scale, which is set with the minValue, maxValue and interval properties.
JavaScript Copy Code |
---|
lineChart.xAxis.minValue = 1; |
If you don't want to show these labels you can set
JavaScript Copy Code |
---|
lineChart.showXCoordinates = false; |
or
JavaScript Copy Code |
---|
lineChart.showYCoordinates = false; |
If you are using an AxisRenderer the property is:
JavaScript Copy Code |
---|
axisRenderer.showCoordinates = false; |
Charts that use the Cartesian coordinate system can show custom labels on all of their axis.
JavaScript Copy Code |
---|
barSeries.xAxisLabels = new Collections.List([ |
You can set the labels from any series as labels on the axis using the supportedLabels property.
Let's assume you have created a Series2D like that:
JavaScript Copy Code |
---|
var labels = new Collections.List([ var series1 = new Charting.Series2D(new Collections.List([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]), new Collections.List([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), labels); |
In order to show the labels on the Y-axis you should set:
JavaScript Copy Code |
---|
series1.supportedLabels = Charting.LabelKinds.YAxisLabel; |
Of course, to disable the scale labels add:
JavaScript Copy Code |
---|
lineChart.showYCoordinates = false; |
BarSeries classes support special xAxisLabels property to set the labels under the bars:
JavaScript Copy Code |
---|
var labels = new Collections.List([ barSeries.xAxisLabels = labels; |