1.

I Have A Column Chart Which Has A Number Of Categories, Each With A Single Data Point (e.g. Like This One). Is It Possible To Change The Color Of The Bar For Each Category? I.e. So Each Bar Would Have Its Own Unique Color Rather Than All Being Blue?

Answer»

You can also SET the color INDIVIDUALLY for each point/bar if you change the DATA array to be CONFIGURATION OBJECTS instead of numbers.

data: [
{y: 34.4, color: 'red'}, // this point is red
21.8, // default blue
{y: 20.1, color: '#aaff99'}, // this will be greenish
20] // default blue

You can also set the color individually for each point/bar if you change the data array to be configuration objects instead of numbers.

data: [
{y: 34.4, color: 'red'}, // this point is red
21.8, // default blue
{y: 20.1, color: '#aaff99'}, // this will be greenish
20] // default blue



Discussion

No Comment Found