|
OHLC Financechart too dense a grid with long term annual data |
Posted by Doug Pickett on Dec-17-2011 06:10 |
|
I'm putting together some charts using the FinanceChart library under PHP. This example was created with addHLOC() and addVolIndicator() on a FinanceChart() object.
I've got some data sets that go back a lot of years, with one point per year.
My problem is the grid for annual data - it just ends up with too dense a grid, since it draws one vertical line per year.
Is there any easy way to change this, for example to one per 5 years or 10 years?
Thanks,
Doug.
|
Re: OHLC Financechart too dense a grid with long term annual data |
Posted by Peter Kwan on Dec-20-2011 06:04 |
|
Hi Doug,
You may use FinanceChart.setPlotAreaStyle to set the minor grid lines to transparent. For example:
$c->setPlotAreaStyle(0xffffff, 0xdddddd, 0xdddddd, Transparent, Transparent);
Hope this can help.
Regards
Peter Kwan |
Re: OHLC Financechart too dense a grid with long term annual data |
Posted by Doug Pickett on Dec-20-2011 06:20 |
|
Peter,
Thank you - that seems to have done the trick.
I do appreciate the richness of ChartDirector, but it can be tricky to find the correct option, especially when you're just learning it.
Thanks again.
Doug. |
|