Hi Marko,
The Axis.setMinTickInc only configures how ChartDirector auto-scale the axis. In your case, the axis is not auto-scaled, but is completely configured by your code, so Axis.setMinTickInc has no effect.
There are several methods to achieve what you need. The easiest one is to replace the labels "Jan", "Feb", "Mar", "Apr", .... with "-Jan", "Feb", "-Mar", "Apr" .... The "-" character in front of the label will cause the label to be associated with a minor tick. (The "-" character will not be visible in the chart.) You can then configure the minor grid color to be transparent.
#major vertical and horizontal grid lines are grey 0xcccccc, minor grid lines are transparent
$c->getPlotArea()->getGridColor(0xcccccc, 0ccccccc, Transparent, Transparent);
Hope this can help.
Regards
Peter Kwan |