Open alextn opened 7 years ago
Ok I just figured out what's going on: value2 = value1+value2
I don't know if this is supposed to be the normal behavior but personally I just wanted to use Morris.Area to have the area of the colored graphic.
Here is the exemple (from http://morrisjs.github.io/morris.js/lines.html): http://jsbin.com/otaxef/115/embed?html,js,output
Hi,
you should add the following option to your code:
behaveLikeLine: true
I think this will solve your problem!
I use Morris.Area with a data array with two values (to draw two graphics on same chart) and I have a problem: the first chart is draw perfectly, but sometimes (most of the time) the second chart does not have the right values !
I took some screenshots:
screenshot 1: second chart with value = 4 but should be 1
screenshot 2: second chart with value = 4 but should be 1
screenshot 3: second chart with value = 3 but should be 1
screenshot 4: second chart with value 4 but should be 3
screenshot 5: console of data array
And here is the code:
For information I have same problem if I switch (in array_data) value1 and value2 (value1 is ok but value2 displayed is not the right one) ; but I haven't the problem with (same array_data and) Morris.Line chart.
Thanks for any advice/help !