|
Problem in charts.. |
Posted by Jettaime on Mar-26-2012 20:41 |
|
Hi,
Please see the attatched image.
The zero y-axis value line over-drawn outside of the plot area.
Can you explain what is the typical reason of this chart behavior?
(The dataset contains -0.0000 values in some time-slot.)
And how can I place the zero y-axis value in the center of the symmetric chart?
Thank you.
|
Re: Problem in charts.. |
Posted by Peter Kwan on Mar-27-2012 01:54 |
|
Hi Jettaime,
Are you using an area chart? I suspect it is the following known bug:
http://www.chartdir.com/forum/download_thread.php?site=chartdir&bn=chartdir_support&thread=1270719981
The bug occurs if the first data point in an area chart is NoValue.
The above thread also include an updated DLL that fixes the problem in 32-bit Windows. If you need a 64-bit DLL, please let me know.
For symmetry, you may use XYChart.setAxisAtOrigin to set up the chart so that the y = 0 position (and/or the y-axis with labels) is in the middle of the chart. For example:
c->setAxisAtOrigin(0, Chart::YAxisSymmetric);
Hope this can help.
Regards
Peter Kwan |
Re: Problem in charts.. |
Posted by Jettaime on Mar-27-2012 09:56 |
|
Hi Peter,
Yes, I'm using an area chart, and this problem has been solved after applying the updated DLL(32-bit Windows).
And the y-axis origin issue also applied.
Although now I'm using the 32-bit Windows application, can I get the 64-bit DLL for the future use?
Thank you very much. |
Re: Problem in charts.. |
Posted by Peter Kwan on Mar-27-2012 23:01 |
|
Hi Jettaime,
We are about to release ChartDirector Ver 5.1 (the C++ edition should be available in Apr 2012). This will include the fix, and is available in both 32-bit and 64-bit.
Hope this can help.
Regards
Peter Kwan |
Re: Problem in charts.. |
Posted by Jettaime on Mar-27-2012 10:51 |
|
Hi, Peter.
I have another question.
When I use Axis.setLogScale(), the symmetric chart feature doesn't work, it changed normal chart.
For example, if [c->yAxis()->setLogScale(-10000000000,10000000000);] or [c->yAxis()->setLogScale(-10000000000,0);],
then the original symmetric chart changed only upper or lower chart.
Thank you. |
Re: Problem in charts.. |
Posted by Peter Kwan on Mar-27-2012 22:59 |
|
Hi Jettaime,
By definition, you cannot use zero, or both negative and positive numbers in a log scale. It is because the logarithm of zero or a negative number is undefined.
So it is not logically impossible to have a log scale with 0 in the middle, because it is not possible to have 0 anywhere in a log scale axis at all.
Hope this can help.
Regards
Peter Kwan |
|