Skip to content

Implement monotonic cubic interpolation for line charts

Arjen Hiemstra requested to merge work/ahiemstra/monotonic into master

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
Screenshot_20210528_133531 Screenshot_20210528_133447

BUG: 435268

Also contains two one liners that I had lying around.

Edited by Arjen Hiemstra

Merge request reports