• Home
  • Nchart3D
  • NGrid
  • Customers
  • Live demo
  • Download
  • Purchase
  • Blog
  • Support
  • Login
Contact us Terms of service Privacy policy ©   Anjuta Software
How to change color of grid lines in the chart?
by Eugene at 2 Mar. 2015
  1. NChart3D FAQ
  2. Java API
  3. How to change color of grid lines in the chart?

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 change the color of grid lines that are perpendicular to X-axis and stroke along Y-axis, you can do the following:

m_view.getChart().getCartesianSystem().getXAlongY().setColor(Color.RED);

 

Was this article helpful?

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

0 out of 0 found this helpful


Comments


No comments yet.

Please log in to place a comment.