javascript - How do I change the first bar color in a canvasjs stacked bar chart? -
i'm working on project want sideways stacked bar chart. needs written in javascript, , best library i've found need canvasjs. in chart i'm creating, colors used in stacked bar not distinguishing different bars, colors have meaning. because of this, if specify color each part of stacked bar independently other bars.
here page specific kind of chart want
on page, example provide has 5 bars, each colors blue, red, purple, green, light blue. 5 bars, colors go in same order. able mix order independently, have bar goes red > green > yellow, 1 goes green > yellow > red, etc.
if know how this, or if know of graphing library in, appreciate help. thanks!
it looks matter of adding color attribute each datapoint individually:
{ x: new date(2012, 01, 1), y: 71, color: "red" }
...which can done each datapoint way like.
Comments
Post a Comment