• Home
  • Nchart3D
  • NGrid
  • Customers
  • Live demo
  • Download
  • Purchase
  • Blog
  • Support
  • Login
Contact us Terms of service Privacy policy ©   Anjuta Software
How to hide zero on the axis?
by Eugene at 2 Mar. 2015
  1. NChart3D FAQ
  2. Java API
  3. How to hide zero on the axis?

You can hide zero or any other value on the axis by customizing the number format of axis' ticks. Please, see previous question for details.

For example, your conversion code might look like:

public String doubleToString(double value, NChartValueAxis axis) {
    return value == 0.0 ? "" : String.format("%f", value);
}

 

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.