alexde created this revision. alexde added reviewers: VDG, Plasma, ngraham. Herald added a project: Plasma. Herald added a subscriber: plasma-devel. alexde requested review of this revision.
REVISION SUMMARY Rounding to the next 10 did not work if the maximum value was something like y_max = 30.947 In this case modulo 10 gives 0 and therefore the maximum values becomes 30 in the end, though it should be 40 otherwise the peak points outside of the chart. Floor(max) + 10 always works. REPOSITORY R102 KInfoCenter BRANCH ymax (branched from master) REVISION DETAIL https://phabricator.kde.org/D24029 AFFECTED FILES Modules/energy/package/contents/ui/main.qml To: alexde, #vdg, #plasma, ngraham Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart