|
sending a layer to the back or bringing a layer to the front |
Posted by Prashanth on Sep-21-2012 20:06 |
|
Hi kwan,
how to use the layer movefront or moveback .
on the linelayer
LineLayer layer3 = c.addLineLayer2();
// SplineLayer layer = c.addSplineLayer();
// Set the default line width to 2 pixels
layer3.setLineWidth(3);
// Add the three data sets to the line layer. For demo purpose, we use a dash
// line color for the last line
layer3.addDataSet(npv_1, 0x667263, "NPV").setDataSymbol(Chart.CircleSymbol, 10);
Thanks,
Prashanth |
Re: sending a layer to the back or bringing a layer to the front |
Posted by Peter Kwan on Sep-21-2012 23:50 |
|
Hi Prashanth,
In your code, you only have 1 layer ($layer3). Suppose somewhere in your code, you have another layer (say $layer2), and you would like to move $layer3 in front of $layer2, then you may use:
layer3.moveFront(layer2);
Hope this can help.
Regards
Peter Kwan |
|