display very small numbers at axis
-
- Posts: 7
- Joined: Thu Jul 17, 2008 2:52 pm
display very small numbers at axis
I want to display very small numbers (downto 10e-20). If values get lower that 10e-6 only 0.000000 is displayed at axis. Is it possible to display scientific numbers (using ..e.. ) at the charts axis?
You can use setNumberFormatOverride()
And then create the DecimalFormat that you want.
Code: Select all
axis.setNumberFormatOverride(new DecimalFormat("00.0E0"));
The answer does not come from thinking outside the box, rather the answer comes from realizing the truth; There is no Box. my js site
-
- Posts: 7
- Joined: Thu Jul 17, 2008 2:52 pm
-
- Posts: 7
- Joined: Thu Jul 17, 2008 2:52 pm
This is an example xy series i want to display (current over temperature):
Code: Select all
-40.0, 1.29233E-11
-40.0, 1.52194E-11
-40.0, 1.31989E-11
-40.0, 1.29233E-11
-40.0, 1.52194E-11
-40.0, 1.31989E-11
25.0, 1.93595E-11
25.0, 1.96145E-11
25.0, 1.9452E-11
25.0, 1.93595E-11
25.0, 1.96145E-11
25.0, 1.9452E-11
25.0, 1.93595E-11
25.0, 1.96145E-11
25.0, 1.9452E-11
25.0, 1.93595E-11
25.0, 1.96145E-11
25.0, 1.9452E-11
25.0, 1.93595E-11
25.0, 1.96145E-11
25.0, 1.9452E-11
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
This is something that needs fixing in the default case. For a workaround, try axis.setStandardTickUnits(new StandardTickUnitSource()). Or add some appropriate tick sizes to the tick unit collection used by the axis.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- Posts: 7
- Joined: Thu Jul 17, 2008 2:52 pm