Hi Chris,
You may add an entry with an invisible icon by using:
$legendObj->addKey($label, Transparent, 0, new DrawArea());
However, the invisible icon will still occupy the same space as a visible icon. Furthermore,
using the custom invisble icon will change the "icon style" of the entire legend box to
another mode that shows the "shape" of the data representation. So instead of just a
square box, the legend icon may become a short line for a line indicator, and a box for bar
indicator.
If you just want to have the OHLC label in the legend and nothing else (no entry for the
moving average, etc), you may consider to remove the legend box, and use
BaseChart.addText to add the OHLC label as custom text on the chart.
Regards
Peter Kwan |