Hi Andreas,
(1) Yes. Just add the text on top of the legend. For example:
c.addLegend(50, 30, false); //legend box is at (50, 30)
//add the text bottom left aligned to (50, 30)
c.addText(50, 30, "Outcomes", "Arial Bold", 10, 0x000000, Chart.BottomLeft);
(2) To insert an legend entry with a symbol, you may disable default legend entry for the bar layer, and add another empty scatter layer with the symbol you want. For example:
myBarLayer.setLegendOrder(Chart.NoLegend);
c.addScatterLayer(null, null, "ABC XYZ", Chart.CircleShape, 13, 0xff3333, 0xff3333);
Hope this can help.
Regards
Peter Kwan |