statistics: implement StatsView

The StatsView shows the chart described by the StatsState structure.
It is based on a QML ChartView. This should make it possible to
easily port to mobile. It does not include any of the UI around
the chart, viz. the variable and chart selection, etc.

The code checking for the statistical significance of the regression
line was written by Willem.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za>
This commit is contained in:
Berthold Stoeger 2021-01-01 22:43:21 +01:00 committed by Dirk Hohndel
parent a034014a6a
commit 995100a540
6 changed files with 1139 additions and 1 deletions

8
stats/qml/statsview.qml Normal file
View file

@ -0,0 +1,8 @@
// SPDX-License-Identifier: GPL-2.0
import QtQuick 2.0
import QtCharts 2.0
ChartView {
antialiasing: true
localizeNumbers: true
}

5
stats/qml/statsview.qrc Normal file
View file

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/qml">
<file>statsview.qml</file>
</qresource>
</RCC>