|
Margins on financial charts |
Posted by Patrick on Apr-28-2014 02:56 |
|
Support,
I would like to apply some margins on the right side of a financial charts so that the price does not run up to the border of the chart.
I attached an image regarding this question.
Thank you,
Patrick
|
Re: Margins on financial charts |
Posted by Peter Kwan on Apr-29-2014 03:18 |
|
Hi Patrick,
You may use Axis.setMargin to add a right margin to the x-axis. In my response to your
other post, the sample code contains a setMargin to set the right margin. May be you can
use it as a reference.
Hope this can help.
Regards
Peter Kwan |
Re: Margins on financial charts |
Posted by Patrick on Apr-29-2014 11:58 |
|
Perfect!!
XYChart mainPriceChart = c.addMainChart(this.ChartAreaHeight);
mainPriceChart.xAxis().setMargin(10);
|
Re: Margins on financial charts |
Posted by Chris on Jun-30-2014 01:27 |
|
Does this work on the PHP version too? |
Re: Margins on financial charts |
Posted by Chris on Jun-30-2014 03:20 |
|
I was able to figure it out,
Here is how I was able to do this if anyone wants to know:
$mychart = $c->addMainChart(240);
$mychart->xAxis->setMargin(5,0); |
|