Page 2 of 4

jqplot chart doesnt populate

Posted: Tue Apr 29, 2014 6:42 am
by Tooba Atif

Done..!!
I was using jqplot.pieRenderer.js and
when I change that to jqplot.pieRenderer.min.js it solved the issue..
Thanks!


jqplot chart doesnt populate

Posted: Wed May 14, 2014 10:32 am
by Karthik Vijay

can any one show me, any customize code in this jqplot.js


jqplot chart doesnt populate

Posted: Wed May 14, 2014 10:38 am
by Peter LPunkt

Can you be more specific what you want to do? the jqplot homepage has a lot of examples and information about using jqplot.


jqplot chart doesnt populate

Posted: Wed May 14, 2014 10:39 am
by Peter LPunkt

Just noticed, the link is empty...examples of the recent version can be found here: http://www.jqplot.com/deploy/dist/exa...


jqplot chart doesnt populate

Posted: Wed May 14, 2014 10:45 am
by Karthik Vijay

ya there are many example. but when i include options in jqplot its not working, thats what i think if saw any html code with view, i ll get some idea.


jqplot chart doesnt populate

Posted: Wed May 14, 2014 10:55 am
by Peter LPunkt

Have you tried following the steps in the second post?

It sounds like you try to change the jqplot.js library. You dont change anything in the jqplot.js or jqplot.css. These files are used to display the information you put into your custom javascript.


jqplot chart doesnt populate

Posted: Wed May 14, 2014 11:05 am
by Karthik Vijay

ya i tried its working and also i try to customize that graph by including some option. my doubt is how to include that code


jqplot chart doesnt populate

Posted: Wed May 14, 2014 11:09 am
by Peter LPunkt

You can change the custom java script. Read the documentation on the jqplot website, how to customize your chart is explained there: http://www.jqplot.com/docs/files/jqPl...

You have to play around with the options.


jqplot chart doesnt populate

Posted: Wed May 14, 2014 11:39 am
by Karthik Vijay

hi,
i have include this code to change my x-axis value

label: 'jan',

im getting all value x-axis value jan.....
how can i include Jan to dec


jqplot chart doesnt populate

Posted: Wed May 14, 2014 12:40 pm
by Peter LPunkt

the label is to specify the axis for example "Months of the Year"

ticks are used for the single data points of the x-axis: 0,1,2,3,4...
you have to use an array to assign the text to the numbers/places on the xaxis:

var months = ['Jan','Feb','March',...,'Dec'] so 0 = Jan, 1=Feb etc.)

in your js, and set the option for the x-axis: ticks: months

Please have a look at the docs and the examples, everything is described there. It took me a while to figure out. I learned by copying example code and changing it for my needs.

Cheers