Quick Charts in KDE Review

Arjen Hiemstra ahiemstra at heimr.nl
Tue Oct 22 11:21:57 BST 2019

On 21-10-2019 16:45, Alexander Potashev wrote:
> Hi Arjen,
> 1. I don't see any checks in the autotests. Would it be easy to
> compare the displayed chart against a reference screenshot image, in
> each of the tests?
> The same screenshots could also help developers understand what kind
> of charts kquickcharts is good for.

They are very simple QML based tests that currently only verify that the
main Chart types still get created correctly. It'd be nice to expand 
though I am slightly hesitant to go with image based tests as they tend 
break easily. On the other hand, one of the main reasons for not having
more extensive tests is that I did not have an idea on how to do that, 
image based tests would solve part of that problem.

> 2. How to add a grid, ticks and labels to a line chart?

For the grid and labels, these are what I generally refer to as 
These are implemented as separate items that you use the normal QML 
options with to layout. You can have a look at 
to see how it is done for a Line chart. I still need to write some 
examples for this, but the control should give you a decent idea.

For ticks, assuming with those you mean some marker on the chart data 
these are not currently implemented. I do have some ideas regarding 
these but
I did not need them yet.

- Arjen

> пн, 21 окт. 2019 г. в 16:46, Arjen Hiemstra <ahiemstra at heimr.nl>:
>> On 21-10-2019 15:22, Arjen Hiemstra wrote:
>> > Hi,
>> >
>> > Quick Charts has been moved to KDE review. The intent is to make it a
>> > Tier 1 framework.
>> >
>> > Quick Charts is a QML module that implements a set of
>> > high-performance, GPU accelerated
>> > charts. Currently the main user of it is a new KSysGuard UI I have
>> > been working on, but
>> > once it is part of Frameworks I also hope to convert several bits of
>> > Plasma to using it.
>> And of course, a link would be useful:
>> https://invent.kde.org/kde/kquickcharts
>> >
>> > - Arjen

More information about the kde-core-devel mailing list