Bars not displaying in jqplot bar chart -


my problem bars not displaying @ in bar chart, using jqplot.

here code:

var line = [['clients' , 15] , ['prospects' , 8]]; var plot4 = jquery.jqplot('chartdiv4', [line] ,                             {                                 seriesdefaults:{                                     renderer:jquery.jqplot.barrenderer,                                     rendereroptions: {                                         varybarcolor: true                                         }                                 },                                 axes:{                                     xaxis:{                                         renderer: jquery.jqplot.categoryaxisrenderer,                                     }                                 }                               }); 

see example @ http://jsfiddle.net/bpek2/3/ shows bars being drawn on screen. make sure @ included dependencies (external resources) you'll need of them. in essence, need

var s1 = [15, 8];  var ticks = ['clients', 'prospects'];  var plot1 = $.jqplot('chart1', [s1], {     seriesdefaults: {         renderer: $.jqplot.barrenderer,         rendereroptions: {             filltozero: true,              varybarcolor: true         }     },     axes: {         xaxis: {             renderer: $.jqplot.categoryaxisrenderer,             ticks: ticks         }     } }); 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -