Hi,
I want to draw a bar chart.
I just want to assign the different text in X-axis.I Don’t know how to do,please someone help me.
^Y axis
|
|
|
|
|
|
|
|
---------------------------------------------------> X axis
one two three four five …
Likewise i want some text to be displayed in X axis. I am using the following code. what change i have to do in the following code so that text will be displayed.
<?php
// bar graph
$this->widget(‘application.extensions.EFlot.EFlotGraphWidget’,
array(
'data'=>array(
array(
'label'=> 'bars',
'data'=>array(
array(1,12,),
array(2,16),
array(3,89),
array(4,44),
array(5,38),
),
'bars'=>array('show'=>true),
),
),
'options'=>array(
'legend'=>array(
'position'=>'nw',
'show'=>true,
'margin'=>10,
'backgroundOpacity'=> 0.5
),
),
'htmlOptions'=>array(
'style'=>'width:400px;height:400px;'
)
)
);
?>
Please someone help me…