javascript - barwidth option is not working on jquery flot -


i trying draw line chart bar chart. went well. code

 $.plot(holder, [                     { data: data[0].data, lines: { show: true }, label:"service level" },                     { data: data[1].data, bars: { show: true }, yaxis: 2, label:"# of calls" } // set second series use second axis                ], {                    yaxes: [{                        min: 0, // options first axis,                        max: 100,                        tickformatter: function (val, axis) {                            return val + '%';                        }                    }, {                        aligntickswithaxis: 1, // options second axis, put on right                        position: "right"                    }],                    xaxis: {                        min: minval.gettime(),                        max: maxval.gettime(),                        mode: "time",                        timeformat: timeformat,                        //twelvehourclock: true,                        ticksize: [tickval, modechart],                        //monthnames: ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"],                        ticklength: 0                    },                    bars: {                         barwidth: 24 * 60 * 60,                    },                    grid: {                        hoverable: true,                        clickable: false,                        borderwidth: 0                    },                });            } 

i set barwidth , whatever change value, width of bar not changing. me please?

i talking blue 1 in image

enter image description here

barwidth series option, can specify globally or per series:

globally:

... series: { // missing     bars: {         barwidth: 24 * 60 * 60,     }, } ... 

per series:

{ data: data[1].data, bars: { show: true, barwidth: 24 * 60 * 60 }, yaxis: 2, label:"# of calls" } // set second series use second axis 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -