There are two ways to achieve this.
The first one is to hide the whole coordinate system:
m_view.getChart().getCartesianSystem().setVisible(false);
The second one is to hide lines only by altering properties of axes and grid lines.
To alter the appearance of axes, you can use properties of the class NChartValueAxis. To access the axes, you can use getters of cartesianSystem like xAxis and similar.
For example, to hide the line of X-axis, do the following:
m_view.getChart().getCartesianSystem().getXAxis().setLineVisible(false);
To alter the appearance of grid lines, you can use properties of the class NChartAxisGrid. To access the grid lines, you can use getters of cartesianSystem like xAlongY and similar. For example, to hide grid lines that are perpendicular to X-axis and stroke along Y-Axis, do the following:
m_view.getChart().getCartesianSystem().getXAlongY().setVisible(false);
However after that the border of plot area will still be visible. To hide it too, do the following:
m_view.getChart().getCartesianSystem().setBorderVisible(false);
Comments
No comments yet.
Please log in to place a comment.