Feature? Set Maximum visible digits + Numberformater

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Harry Plotter ;-)
Posts: 12
Joined: Thu Aug 04, 2005 2:56 pm
Location: Oldenburg - Germany

Feature? Set Maximum visible digits + Numberformater

Post by Harry Plotter ;-) » Thu Sep 08, 2005 3:51 pm

We are using JFreeChart in a scientific Project and therefore we need some
features, which we cannot find until now in JFreeChart:

1. We need to set the maximum visible digits behind the decimal point for the ticklabels

2. We want to use a numberformater for the numbers displayed at the ticks in order to format the digits in scientific notation or for different locales.

Perhaps we have not found these features yet, so a note about the availability of the above described would be highly appreciated.

In case these features do not exist:
Is there any interest in adding these features to JFreeChart?
We would implement these features based on the 1.0.0-rc1 and send them to someone of the developers of JFreeChart.

Greetings
Peter

dhchou
Posts: 138
Joined: Tue Jul 05, 2005 11:01 pm

Post by dhchou » Thu Sep 08, 2005 10:06 pm

You can use

NumberAxis.setNumberFormatOverride(java.text.NumberFormat formatter)

to achieve both features. Formatting is dependent on the Java API only, not on JFreeChart.

Daniel

Locked