ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Polar Line Chart - Stacking order of layers
Posted by Rob Horn on Jun-20-2019 12:47
Hi,

In PHP, I would like to display Layer 1 in front of Layer 2 but at the same time keep the order of the legend box as "C0 - C180 | "C90 - C270" - I tried this but adding the "moveFront" results in an error

$layer1 = $c->addLineLayer($data1, 0xff0000, "C0 - C180");
$layer1->setAngles($angles1);
$layer1->setLineWidth(1);
$layer1->setCloseLoop(false);

$layer2 = $c->addLineLayer($data3, 0x1821cd, "C90 - C270");
$layer2->setAngles($angles3);
$layer2->setLineWidth(1);
$layer2->setCloseLoop(false);

$layer1->moveFront($layer2);

Please can you help?

Thanks
Rob

  Re: Polar Line Chart - Stacking order of layers
Posted by Peter Kwan on Jun-20-2019 17:55
Hi Rob,

The moveFront API is only available for XYChart. For PolarChart, you would need to control the ordering of the layers by adding the layers at the proper order.

If you want to reverse the ordering of the legend box, you can use LegendBox.setReverse. For example:

$c->getLegend()->setReverse();

Hope this can help.

Regards
Peter Kwan