Problem with diagonal x-labels
Brought to you by:
monk-e-boy
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??
Screenshot of problem in diagonal x labels
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