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;
Comments
No comments yet.
Please log in to place a comment.