<table><tr><td style="">alexde created this revision.<br />alexde added a reviewer: VDG.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />alexde requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D23520">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The current energy plot does not display any time line. This patch adds a grid and time stamps to the X axis.<br />
It is assumed that the X axis of the plot ranges from [Now - Timespan, Now].<br />
The timestamps for the timespans greater than "1 hour" are aligned to either half hours or full hours. <br />
The resolution respectively the divisions count or number of ticks is made dependend on the timespan.<br />
Dates are only shown if the date changes in the timespan.</p>
<p>This patch may be only of temporary nature until <a href="https://invent.kde.org/kde/kf5quickcharts" class="remarkup-link" target="_blank" rel="noreferrer">kf5quickcharts</a> becomes production ready.</p>
<p>As QML was absolutely new to me, I am looking forward to your review.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R102 KInfoCenter</div></div></div><br /><div><strong>BRANCH</strong><div><div>energy-timeline (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23520">https://phabricator.kde.org/D23520</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>Modules/energy/package/contents/ui/Graph.qml<br />
Modules/energy/package/contents/ui/main.qml</div></div></div><br /><div><strong>To: </strong>alexde, VDG<br /><strong>Cc: </strong>plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>