D23520: Add time line to X axis

Alex Debus noreply at phabricator.kde.org
Wed Aug 28 09:51:31 BST 2019


alexde created this revision.
alexde added a reviewer: VDG.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
alexde requested review of this revision.

REVISION SUMMARY
  The current energy plot does not display any time line. This patch adds a grid and time stamps to the X axis.
  It is assumed that the X axis of the plot ranges from [Now - Timespan, Now].
  The timestamps for the timespans greater than "1 hour" are aligned to either half hours or full hours. 
  The resolution respectively the divisions count or number of ticks is made dependend on the timespan.
  Dates are only shown if the date changes in the timespan.
  
  This patch may be only of temporary nature until kf5quickcharts <https://invent.kde.org/kde/kf5quickcharts> becomes production ready.
  
  As QML was absolutely new to me, I am looking forward to your review.

REPOSITORY
  R102 KInfoCenter

BRANCH
  energy-timeline (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D23520

AFFECTED FILES
  Modules/energy/package/contents/ui/Graph.qml
  Modules/energy/package/contents/ui/main.qml

To: alexde, #vdg
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190828/167e429a/attachment.html>


More information about the Plasma-devel mailing list