Hi KeithB,
When you add a data series to the chart (eg. using addLineLayer, addBarLayer, ...), and your data series has a name, and your chart has a legend box, then by default ChartDirector will add your data series to the legend box.
If you do not want the automatic legend entry, you can using Layer.setLegendOrder. For example:
myLayer.setLegendOrder(Chart.NoLegend);
See:
https://www.advsofteng.com/doc/cdnet.htm#Layer.setLegendOrder.htm
Best Regards
Peter Kwan |