Chart axes are used to show the scale of all values in the chart. Your chart can have horizontal and vertical axes, they can be positioned at the left, right and bottom of the chart.
| Class | Description |
|---|---|
| Axis2DX | Horizontal Axis. Can display rotated labels. This axis provides scrolling functionality. Also it can be attached to the certain position of a partner Y axis. |
| Axis2DY | Vertical Axis. This axis provides scrolling functionality. One chart can have several Y axes on both sides, also Y axes can be stacked one over another. |
| Axis3DX | Axis for 3D chart. Displays X coordinate values. |
| Axis3DY | Axis for 3D chart. Displays Y coordinate values. |
| Axis3DZ | Axis for 3D chart. Displays Z coordinate values. |
| RadarAxisSet | Used only in RadarSeries. Can display circular or polygonal grid. |
Table 5.2.1.1 Main axis types
Creating Axis2DX object:
1 | // creating x-axis mapper MathAxisMapper xMapper = new MathAxisMapper(0,100); // creating Axis2DX object Axis2DX axisX = new Axis2DX(xMapper); |
Creating RadarAxisSet object:
1 | // creating axis mapper MathAxisMapper axisMapper = new MathAxisMapper(-40, 0); // creating abstract Radar mapper AbstractRadarMapper mapper = new RadarMapper(axisMapper); // creating RadarAxisSet object RadarAxisSet axisRadar = new RadarAxisSet(xMapper); |
Set Radar Axis Label visible:
axisRadar.setShowAxisLabels(true); // if set false - axis label will be invisible. |
Set Radar Axis titles:
// Set the title label of the individual radar axis. axisRadar.setTitle(0, “Axis 1”); axisRadar.setTitle(1, “Axis 2”); |