ignoreintuition / v-chart-plugin

Easily bind a chart to the data stored in your Vue.js components.
https://resurgencewebdesign.com/v-chart/
GNU General Public License v3.0
198 stars 33 forks source link

give bars different colors based on different value #177

Open MichelleMayambu opened 4 years ago

MichelleMayambu commented 4 years ago

i am trying to create a bar chart that will have different coloured bars based on the value of the independent bar itself.

Somebody please assist me

ignoreintuition commented 4 years ago

Can you send me a link to the code and I can take a look?

MichelleMayambu commented 4 years ago

@ignoreintuition i am currently running my code locally as a vue project . so far everything works well but my bars are all the same color github1 github2

this is my output github3

ignoreintuition commented 4 years ago

The bars would be the same color unless they were based off of different characteristics. If you want them to change color based off of thresholds or if you want to compare different items you can vary the colors of the individual bars.

MichelleMayambu commented 4 years ago

@ignoreintuition thank you so much for your response.