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

Message ListMessage List     Post MessagePost Message

  Moving x-Axis and Grid-line to left
Posted by wolkenlos on Oct-25-2011 13:24
Attachments:
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
rain_old.png
rain_new.png

  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