|
Moving x-Axis and Grid-line to left |
Posted by wolkenlos on Oct-25-2011 13:24 |
|
Hi everybody!
I have a problem. I have to plot a bar chart with values of 6 hours precipitation. Chardirector plots the bars like it is shown in picture "rain_old.png". The label is in the middle of the bar. But what I want is picture "rain_new.png" (manipulated with Paint). The x-Axis should move to left, also the labels and the marks. The bars mean precipitation-values between the time steps (eg. 1mm between 02 and 06 o?clock and so on).
xAxis->setTickOffset(-0.5) and xAxis->setLabelOffset(-0.5) do not what I want.
Has someone an idea?
Thanks, Hannes
|
Re: Moving x-Axis and Grid-line to left |
Posted by Peter Kwan on Oct-25-2011 15:25 |
|
Hi wolkenlos,
Have you tried both setTickOffset and setLabelOffset? For example, in PHP:
$c->xAxis->setTickOffset(-0.5);
$c->xAxis->setLabelOffset(-0.5);
The first line shift the ticks 0.5 units to the left. The second line shifts the labels 0.5 units to the left. This should result in the "MAYBE NEW" chart.
Hope this can hlep.
Regards
Peter Kwan |
|