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

You can change the format by overriding the double-to-string conversion of the needed axis. This can be achieved by implementing the corresponding method of value axis data source.

For example, use the following code:

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

Do not forget to set the data source for the axis you want to customize, for example:

m_view.getChart().getCartesianSystem().getXAxis().setDataSource(this);

 

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.