bbonnin / vue-morris

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

yMin and yMax not working #24

Closed ccorreia-multiconversion closed 5 years ago

ccorreia-multiconversion commented 5 years ago

Hi again!

These properties are not working in area-chart, never call the function getMin and getMax

:yMin="getMin" :yMax="getMax"

On the version of morris with jquery, thhese properties are working.

Sorry again for my english! Thx

bbonnin commented 5 years ago

Hi, First, the option names: ymin and ymax (without uppercase). Then, I haven't seen in Morris.js code that these options can be used as functions (maybe I am wrong). Can you provide me an example (without vue-morris) where you set these options as functions. Thanks :)

ccorreia-multiconversion commented 5 years ago

Hi, sorry for the delay, here is the code

https://jsfiddle.net/ccorreia64/f5097zmu/

bbonnin commented 5 years ago

Hi, I understand your example. I have updated my project vue-morris-example to show you how to get your example working with vue-morris. For short:

Check this file: https://github.com/bbonnin/vue-morris-example/blob/master/src/App.vue The last chart is your chart (with less data :) ) and you could see how to do with vue-morris in your context.