|
Layer.xZoneColor cascading iteration limit? |
Posted by Yves on Jan-15-2005 10:28 |
|
Dear all,
Somebody knows if there is a limit by cascading multiple x-zone colors for creating an x-zone color for a LineLayer in the Java version 3.1?
My Example is that you have a huge number of data(ex:~2000 points) and there is a lot of zones in the data that I want in different color (ex:about 28 zones9. To create a color for the line layer I need to do about 56 cascading iteration to get the x-zone color of the layer. If I try to show the layer with the color created with all this cascading, only the last third of the data is shown on the chart.
Sorry for my english, it's not my mother tong, and the problem is not soo easy to explain!
Best Regards,
Yves
|
Re: Layer.xZoneColor cascading iteration limit? |
Posted by Peter Kwan on Jan-15-2005 22:17 |
|
Hi Yves,
Yes. There is in fact a depth limit. I think the depth limit is 20 levels deep.
If you use linear cascading, you may have around 20 zones. However, if you use binary cascading, 20 levels deep is sufficient to create around 1 million zones.
Anyway, in your case, I think you may consider another method. You may separate your data points in two layers. The first layer contains the light grey points (just replace the other points with the special ChartDirector constant NoValue - the exact syntax of NoValue depends on your programming language - please refer to the ChartDirector documentation of your programming language). The second layer contains the black points. The points that join the light grey line to the black line should appear in both layers. In this way, you can draw your line without using xZoneColor at all.
Regards
Peter Kwan |
Re: Layer.xZoneColor cascading iteration limit? |
Posted by Yves on Jan-15-2005 23:46 |
|
Hy Peter,
Thanks a lot for your response, I will try with the solution you are proposing.
I would like to congratulate you and your team for this great graphical library.
I'm actually evaluating different libraries, and it is actually the best I have seen, I will probably go for it.
Regards,
Yves |
Re: Layer.xZoneColor cascading iteration limit? |
Posted by Dave Doyle on Feb-15-2011 08:09 |
|
I ran into the same thing. The limit is 10. |
Re: Layer.xZoneColor cascading iteration limit? |
Posted by Dave Doyle on Feb-15-2011 08:10 |
|
Sorry, I should rephrase, 10 sets of zones. 20 changes total. |
|