Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#3 Problem with diagonal x-labels

open
nobody
None
5
2008-08-18
2008-08-18
No

Hello, I changed my app to OFC 2. I've managed to upgrade most of the code, but i can't get the x-labels to be diagonal.

I use the x_axis_labels class. I've had to add a set_rotate method to this class. My code is the following:

$x_labels = new x_axis_labels();
$x_labels->set_steps( $x_steps );
$x_labels->set_rotate('diagonal');
$x_labels->set_colour( '#ff0000' );
$x_labels->set_labels( $months );

but the months appear OVER the chart, not under. I've done it very similar of the example, but changing the one by one x_axis_label class, to x_axis_labels. I've attached a screenshot of the chart.

Do have anybody else had this problem??

Discussion

  • Screenshot of problem in diagonal x labels

     
    Attachments
  • Babar
    Babar
    2008-10-10

    You can move the label below and in diagonal position by adding this line
    $x_labels->set_vertical();
    The next problem you will face is that the labels were too away from the x-axis i am also waiting for the solution thanks