bbonnin / vue-morris

VueJS component wrapping Morris.js
MIT License
234 stars 36 forks source link

Bar chart horizontal #8

Closed suryadana closed 6 years ago

suryadana commented 6 years ago

I want to create a horizontal bar chart, I can create with this library?

pierresh commented 6 years ago

I have never used this fork of Morris.js with Vue, but with original one you just need to set the option horizontal: true

bbonnin commented 6 years ago

The problem is that horizontal option is only available as the version 0.5.1 of morris.js that is NOT available on npm repository. The latest release of morrisjs/morrisjs in npm is 0.5.0. If you find a forked version of morrisjs v0.5.1 available on npm, use it and add the horizontal attribute with the <bar-chart> tag.

PS: vue-morris is not a fork but just a wrapper. ;-)

suryadana commented 6 years ago

Ok i will try that thank for you support. 👍 If need with new morris.js view this link link thanks for @bbonnin.