There are two ways to achieve this.
The first one is to hide the whole coordinate system:
m_view.chart.cartesianSystem.visible = 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.chart.cartesianSystem.xAxis.lineVisible = 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.chart.cartesianSystem.xAlongY.visible = false
However after that the border of plot area will still be visible. To hide it too, do the following:
m_view.chart.cartesianSystem.borderVisible = false
No comments yet.
Please log in to place a comment.