|
Inconsistant chart between ios and mac when some series value is empty |
Posted by http://www.chartdir.com/forum/post.php?bn=chartdir_support on Oct-08-2011 08:43 |
|
Hi,
We see the generated charts are inconsistent between ios and mac when there are some
empty values in the series. It happens in Area chart and pos/negative chart. I have
attached the screenshots.
We are using v5.0.2. Wish you take a look at them. Thanks in advance!
Ryan |
Re: Inconsistant chart between ios and mac when some series value is empty |
Posted by http://www.chartdir.com/forum/post.php?bn on Oct-08-2011 08:45 |
|
For area chart . The first one is on ios, the second one is on mac
|
Re: Inconsistant chart between ios and mac when some series value is empty |
Posted by http://www.chartdir.com/forum/post.php?bn on Oct-08-2011 08:46 |
|
For pos neg chart. The first one is on ios, the second one is on mac.
|
Re: Inconsistant chart between ios and mac when some series value is empty |
Posted by Peter Kwan on Oct-10-2011 05:34 |
|
Hi Ryan,
The "ChartDirector for C++" for Mac OS X is based on more updated code. (After we build the "ChartDirector for IOS", we then updated the "ChartDirector for C++" to support Qt.) One of the differencess that the behaviour of the area chart using NoValue has changed in some special cases for "isolated data points".
For the "Positive Negative Bars", we are not able to reproduce the problem. If we use all NoValue points as data, we produce a chart with a light purple background, the same as IOS. Would you mind to inform me the exact code you use to produce the chart in Mac OS X?
Regards
Peter Kwan |
Re: Inconsistant chart between ios and mac when some series value is empty |
Posted by Inconsistant chart between ios and mac when some series value is on Oct-11-2011 05:03 |
|
Hi Peter,
Thanks for the Info. Our code is too complicated to extract the details. But since it's the
cross platform code, we don't expect it behave differently on different platforms. What we
have seen is:
1. Normally, say we have three records if data set is empty, there is NO purple
background on both mac and ios.
2. The problem happens when we only have one record, while the record contains a list of
values, while easy of it is empty. We will still plot each value per series, while we see the
difference in that on mac there is NO background color, while on ios there is a purple
background.
Anyway, this is just a minor issue. We here don't have enough time to narrow down it. It's
ok, if you can't reproduce it on your side.
Thanks |
Re: Inconsistant chart between ios and mac when some series value is empty |
Posted by Peter Kwan on Oct-12-2011 02:02 |
|
Hi,
Thanks for your information. We will try to see if we can reproduce the problem.
Actually, in our case, we always see the purple color. So I suspect the issue may not be in the data, but in how the axis scale is set and how the zones are added.
Also, there may be a small chance that the charts are different because the data are different.
Even with the same code and the same "raw data", it is possible the data become different if they are manipulated before passing to ChartDirector. It is because floating point arithmatic may not be absolutely accurate, and the ARM processor and the Intel processor may handle the computation and rounding differently. (The Intel CPU has a 80-bit FPU for intermediate results, while the ARM CPU may only have 64-bit.) We have seen a case where a NoValue constant becomes not a NoValue because the compiled code changes it by an extremely small amount during manipulation.
So for diagnostics, it would be easier for us if we can get a sample code that uses hard coded data to reproduce the problem.
Regards
Peter Kwan |
|