How to display the labels for x and y axis

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'=&gt;array(           


        array(


            'label'=&gt; 'bars', 


            'data'=&gt;array(


                array(1,12,),


                array(2,16),


                array(3,89),


                array(4,44),


                array(5,38),


            ),


            'bars'=&gt;array('show'=&gt;true),


        ),


    ),


    'options'=&gt;array(


            'legend'=&gt;array(


                'position'=&gt;'nw',


                'show'=&gt;true,


                'margin'=&gt;10,


                'backgroundOpacity'=&gt; 0.5


                ),


    ),


    'htmlOptions'=&gt;array(


           'style'=&gt;'width:400px;height:400px;'


    )


)

);

?>

Please someone help me…

You should investigate a bit what library the extension is using, and then check the documentiation of that library.

hi,

I am using "Javascript plotting library for jQuery, version:0.6.".

and i have downloaded EFlot from "http://www.yiiframework.com/extension/flot".

Can you please help me to do this, i tried but i was not able to find it.

Hi!

maybe you have to use a little trick here :)

Is it possible for me to use Flot instead of EFlot? Because in EFlot i was not able to do most of the things…

are using this library? flot

[i]

"This extension encapsulates the jQuery flot graph library…"[/i]

hi Guys,I found the same problem.

in my case I want to create month(X axis) and year (Y axis),is there some way to manipulate the data set or there are some other way to create it?