morrisjs / morris.js

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

Line graph has humps and bumps instead of flat line #482

Open mrextreme opened 10 years ago

mrextreme commented 10 years ago

In line charts when I have the exact same values one after the other, it draws a wave, instead of a flat line. I think that's because how the line smoothing algorithm (Bezier or whatever else) works, but can anything be done about it? That looks bad and gives false impressions to the viewer.

example

ExcellentSP commented 9 years ago

Maybe set smooth: 'false' and see how that works for you.

JelteF commented 9 years ago

It is indeed because of how the bezier curves work. I don't know enough of the SVG code to know how to make sure this doesn't happen. and smooth: 'false' should indeed remove the problem.