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

Message ListMessage List     Post MessagePost Message

  Volume Bar Layer Axis Color
Posted by Steve on Jul-26-2013 21:22
Peter,

I'm having a problem with setting the color of the 'left y-axis' for volume bars which are represented as a bar layer. Have tried setting the axis of the layer to yaxis2 and a few other things including setting border color but nothing that I try changes the axis colors for this chart.

Any ideas ?

Thanks in advance,

Steve.

  Re: Volume Bar Layer Axis Color
Posted by Peter Kwan on Jul-27-2013 01:47
Hi Steve,

Are you using the FinanceChart object? The FinanceChart can contain many XYCharts (eg. for the main price chart, and various indicator charts). If you would like to set the color of the left y-axis of the main price chart, you can use Axis.setColors for the left-axis of the main price chart. It is like:

#when your code adds the main price chart, please store the returns XYChart object
#so you can use it later
$m = $c->addMainChart(240);

.....

#add volume bars to the main price chart
$c->addVolBars(75, 0x99ff99, 0xff9999, 0x808080);

#configure the left y-axis to all red in color
$m->yAxis2->setColors(0xff0000, 0xff0000, 0xff0000);

Hope this can help.

Regards
Peter Kwan

  Re: Volume Bar Layer Axis Color
Posted by Steve on Jul-27-2013 05:46
Peter,

Many thanks. I had done exactly that but before I had added to vol bars so no doubt my instructions were overwritten with the default bar layer settings I guess.

Thanks again.