Hi,
I found a bug within Teechart lib v1 and v2. While this "#.#######" kind of value format is working fine with small values, exponential value format for the small values is not working properly at 0.0 axis.
Please try to run the following code and you will see "1.39E-16" at min(Y axis values) instead of 0 (zero)
------------------------------------------------------------
import javax.swing.JFrame;
import javax.swing.JPanel;
import com.steema.teechart.TChart;
import com.steema.teechart.styles.*;
public class TestForZeroAxis {
public static void main(String[] args) {
int panelsize=600;
JFrame frame = new JFrame();
JPanel panel = new JPanel();
panel.setSize(panelsize, panelsize);
TChart chart = new TChart();
chart.getAxes().getBottom().setIncrement(1);
chart.getAxes().getLeft().getLabels().setValueFormat("0.00E0");
panel.add(chart);
Points p = new Points(chart.getChart());
p.add(1,0.99);
p.add(2,0.135);
p.add(3,0.025);
p.add(4,0.012);
p.add(5,0.433);
frame.add(panel);
frame.setSize(panelsize, panelsize);
frame.setVisible(true);
}
}
------------------------------------------------------------
If you change the valueformat to setValueFormat("#.######"), it works fine. Is this bug going to be fixed any soon? Or Is there a quick way I can fix this issue while waiting for the next fixed version?
Thanks,
Jonathan
a bug on exponential values at 0.0 axis
Hi Jonathan,
Yes, you are right. I've added the issue to the wish list to be fixed in future releases (TJ71013849).
Yes, you are right. I've added the issue to the wish list to be fixed in future releases (TJ71013849).
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
When would it be for future releases (TJ71013849)?
When would it be for future releases (TJ71013849)?
In other words, do you have a schedule for releasing "TJ71013849" version? If so, when is it going to be roughly? (It doesn't have to be exact, but if possible, I'd like to know when it would be.)
Thanks,
Jonathan
In other words, do you have a schedule for releasing "TJ71013849" version? If so, when is it going to be roughly? (It doesn't have to be exact, but if possible, I'd like to know when it would be.)
Thanks,
Jonathan
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Jonathan,
Sorry at the present moment we haven't fixed a date for next TeeChart for Java v2 maintenance release neither I can tell if TJ71013849 will be fixed in it. IMHO it's possible it will be fixed but I can not commit for now.
We may also be able to send you source code files involved with this bug when it's fixed so that you don't have to wait for the maintenance release being published.
I recommend you to be aware at this forum or subscribe to our RSS news feed for new release announcements.
Thanks in advance.
Sorry at the present moment we haven't fixed a date for next TeeChart for Java v2 maintenance release neither I can tell if TJ71013849 will be fixed in it. IMHO it's possible it will be fixed but I can not commit for now.
We may also be able to send you source code files involved with this bug when it's fixed so that you don't have to wait for the maintenance release being published.
I recommend you to be aware at this forum or subscribe to our RSS news feed for new release announcements.
Thanks in advance.
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Jesse,
Yes, this is a high priority bug to be fixed. We recommend you to be aware at this forum or subscribe to our RSS news feed for new release announcements and what's fixed on them.
Thanks in advance.
Yes, this is a high priority bug to be fixed. We recommend you to be aware at this forum or subscribe to our RSS news feed for new release announcements and what's fixed on them.
Thanks in advance.
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 |