javascript - Order of colors chosen in flot chart -
i trying add custom array of colors flot input. when try draw multiple graphs in same page. graphs doesnt take input color array , goes default set of colors. below options used, colorpalette custom color array used. idea when flot rejects input color array , when takes.
var options = { colors: colorpalette, legend: { show: true, margin: 10, backgroundopacity: 0.5, position: 'nw' }, yaxes: [ { min: 0, labelwidth : yaxislabelwidth }, { aligntickswithaxis: 1, position: 'right', min: 0, labelwidth : yaxislabelwidth } ], xaxis: { mode: "time", ticklength: 0 }, grid: { borderwidth: 1, bordercolor: "#cccccc", labelmargin: 10, hoverable: true, mouseactiveradius: 8 }, stack: null, bars: { show: true, align: 'center', linewidth: 1 }, multiplebars: true };
Comments
Post a Comment