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