|
One series on few layers |
Posted by Pawel on Apr-02-2010 17:48 |
|
Hello,
Do you know if there is a possibility to draw a Depth Bar Chart using one series of data displayed in few layers?
I want to have something like "Depth Bar Chart" (from examples in the library documentation) but with only one position in the legend.
Thanks for your help.
Best regards,
Pawel |
Re: One series on few layers |
Posted by Peter Kwan on Apr-03-2010 15:03 |
|
Hi Pawel,
You would need to split you data series into multiple series to do something like a "Depth Bar Chart". For example, suppose you have one series with 15 elements, and you would like to display the data as 5 x 3 bars (5 bars from left to right, and 3 layers from front to back), you would need to split your data to 3 series, each with 5 elements, and put them into 3 layers.
For having one position in the legend, you just need to disable the legend entry for 2 of the 3 layers. There are two methods:
(a) If you do not provide a "name" for the layer when you call addBarLayer, there would be no legend entry for that layer.
(b) If you must provide names for all layers, you may use Layer.setLegendOrder to display the legend entry of a layer.
Hope this can help.
Regards
Peter Kwan |
|