reactjs / react-chartjs

common react charting components using chart.js
MIT License
2.93k stars 301 forks source link

Plotting a threshold line on top of a bar chart #131

Open adrianmcli opened 7 years ago

adrianmcli commented 7 years ago

Is it possible to use this library to make a chart similar to this:

bar chart with threshold line

Additionally, can I colour the bars differently depending on whether or not they are above the threshold line?

hptk commented 7 years ago

Refer to http://www.chartjs.org/docs/

This project is little else than a wrapper for charts.js. Be aware of version diffrences in charts.js, the master barnch of this project only supports v1.1.1, but the v2-branch (see #84) should cover v2.x thats in the docs linked above.

adrianmcli commented 7 years ago

@hptk thanks for the reply. I had a look at some of the stuff on the chartjs repo and there seems to be some promising plugin for what I need. I'll close this comment and report what I find once I am done with my investigation.