Hello there,
I'm trying to pass values with 6 decimals double number to the graphic.
The problem is: The graphic is showing only with 3 decimals instead of 6.
Am i missing something ?
Follows the images:
Graphic Line with 6 decimals
Graphic Line with 6 decimals
- Attachments
-
- Result
- resultWeb.png (128.35 KiB) Viewed 11726 times
-
- Double Value
- doubleValue.png (59.66 KiB) Viewed 11691 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Graphic Line with 6 decimals
Hi Lourival,
You just need to set series' ValueFormat, for example:
You just need to set series' ValueFormat, for example:
Code: Select all
Line series = new Line(tChart1.getChart());
series.add(0.123456);
series.add(1.123456);
series.add(2.123456);
series.add(3.123456);
series.add(4.123456);
series.getMarks().setVisible(true);
series.setValueFormat("#.######");
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Graphic Line with 6 decimals
That's it! Thanks Narcís.
PS: Is there a way to allow any digits, so i don't need to always specify it? Like "*.*" or something like that...
PS: Is there a way to allow any digits, so i don't need to always specify it? Like "*.*" or something like that...
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Graphic Line with 6 decimals
Hi Lourival,
DecimalFormat is being used here. You'll probably need to use as many "0" or "#" as decimals you want to guarantee in your charts.
DecimalFormat is being used here. You'll probably need to use as many "0" or "#" as decimals you want to guarantee in your charts.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |