• Home
  • Nchart3D
  • NGrid
  • Customers
  • Live demo
  • Download
  • Purchase
  • Blog
  • Support
  • Login
Contact us Terms of service Privacy policy ©  2025 Anjuta Software
How to hide grid lines and axes lines?
by Eugene at 2 Mar. 2015
  1. NChart3D FAQ
  2. Swift API
  3. How to hide grid lines and axes lines?

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

 

Was this article helpful?

Unfortunately, you can't vote for this article. Please log in to be able to vote.

1 out of 1 found this helpful


Comments


No comments yet.

Please log in to place a comment.