Page 1 of 1

a bug on exponential values at 0.0 axis

Posted: Mon Feb 09, 2009 10:40 pm
by 7667590
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

Posted: Tue Feb 10, 2009 11:21 am
by yeray
Hi Jonathan,

Yes, you are right. I've added the issue to the wish list to be fixed in future releases (TJ71013849).

When would it be for future releases (TJ71013849)?

Posted: Tue Feb 10, 2009 3:46 pm
by 7667590
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

Posted: Tue Feb 10, 2009 4:00 pm
by narcis
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.

Posted: Tue Feb 10, 2009 4:02 pm
by 7667590
Thanks Yeray and NarcĂ­s for your answers.

- Jonathan

Posted: Wed Feb 11, 2009 9:59 pm
by 7667592
We are getting a great deal of complaint about this bug, so please give this your attention as soon as you can.

The product is now going out to more customers and it is embarrassing to have to tell them that we cannot fix the problem.

Thanks,
Jesse

Posted: Thu Feb 12, 2009 10:36 am
by narcis
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.