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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -