jquery - Unable to get label with axislabels.js -


i have been working on flot few days now. api awesome , evrything works fine except after including jquery.flot.axislabels.js, cannot display label name.

i have worked on lot , tried available on this. below code snippet have been trying:

 $.plot($("#graph"), [     {         data: d1,         bars: {             show:true,             align: "center",             barwidth: 0.5,             horizontal: true,             fillcolor: "#6199cc",             linewidth: 0         },         xaxis: {             axislabel: "label x-axis",             axislabelusecanvas: true,             axislabelfontsizepixels: 12,             axislabelfontfamily: 'verdana, arial',             max: 200,             tickcolor: "#5e5e5e",             color:"black"         },         yaxis: {             axislabel: "label y-axis",             axislabelusecanvas: true,             axislabelfontsizepixels: 12,             axislabelfontfamily: 'verdana, arial',             axislabelpadding: 3,             tickcolor: "#5e5e5e",             ticks: ticks,              color:"black"         },         grid: {             hoverable: true,             borderwidth: 2,             backgroundcolor: { colors: ["#171717", "#4f4f4f"] }         }     } ]); 

i have tried changing xaxis xaxes , same y. have tried show:true inside xaxis , yaxis options. numbers on axes , no labels.

do need specify div same (as found on sites, don't believe now), if yes, how integrate axislabels.js or may missing properties, need set true or show.

the rest of code fine, gives no error , renders beautiful plot.

confirmed duplicate of flot axislabel not working.

you have options included in data part of plot method call.
separate them , works (see fiddle):

$.plot($("#graph"), [d1], {     bars: {         show: true,         align: "center",         ...     },     ...         }); 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -