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

Message ListMessage List     Post MessagePost Message

  How to remove red/green square on Op Hi Lo Cl Label of FinanceChart
Posted by Chris on Feb-03-2015 17:10
I want to remove the red or green square on the FinanceChart addOHLCLabel. It looks like this square is a required parameter of getLegend().addKey though.

How can this be done?

  Re: How to remove red/green square on Op Hi Lo Cl Label of FinanceChart
Posted by Peter Kwan on Feb-04-2015 03:34
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