morrisjs / morris.js

Pretty time-series line graphs
http://morrisjs.github.com/morris.js/
6.92k stars 1.23k forks source link

Bar graph multiple bars and stacked #770

Open jaldip opened 6 years ago

jaldip commented 6 years ago

Hello Morrisjs Team,

Thanks for the library.

While it mostly works great, I am stuck with a graph I need. Here is exact problem, someone else posted.

https://stackoverflow.com/questions/33567885/morris-js-multiple-stacked-bars-on-single-label

It says it will not be possible with morrisjs.

Kindly comment.

Best Regards, Jaldip

jaldip commented 6 years ago

Following up. Thanks.

pierresh commented 6 years ago

Hello,

I am sorry but that is not possible with that plugin. The only other alternative/workaround I suggest you is to use my fork, you could mix stacked bar chart (on the left Y axis), with a line curve (on the right Y axis). If you set ymax2 same with ymax, both axis would have the same scale https://pierresh.github.io/morris.js/

jaldip commented 6 years ago

Hello Pierresh,

No issues mate. Even without this feature, morrisjs is a decent library for graph.

Being a developer, I can help you if you want to implement this feature I can help you with this mate.

Let me know, Regards, Jaldip