Implement monotonic cubic interpolation for line charts
Replace the existing cubic interpolation in the line chart with cubic monotonic interpolation, which tries harder to preserve monotonicity and that way avoids over or under shooting the target point. As a bonus, the implementation turns out simpler than the cubic implementation we currently have, which should improve performance.
Before | After |
---|---|
Also contains two one liners that I had lying around.
Edited by Arjen Hiemstra