summaryrefslogtreecommitdiffstats
path: root/stats/qml
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-01 22:43:21 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-02 11:04:03 -0800
commit995100a540c2c5a49a2cfebcb245a7e964d2d988 (patch)
tree025f7bbb4fd48d29103602249b88356e6957fa8d /stats/qml
parenta034014a6aaf807119feac0638461f5c95990b5e (diff)
downloadsubsurface-995100a540c2c5a49a2cfebcb245a7e964d2d988.tar.gz
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>
Diffstat (limited to 'stats/qml')
-rw-r--r--stats/qml/statsview.qml8
-rw-r--r--stats/qml/statsview.qrc5
2 files changed, 13 insertions, 0 deletions
diff --git a/stats/qml/statsview.qml b/stats/qml/statsview.qml
new file mode 100644
index 000000000..24f1fe9d3
--- /dev/null
+++ b/stats/qml/statsview.qml
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+import QtQuick 2.0
+import QtCharts 2.0
+
+ChartView {
+ antialiasing: true
+ localizeNumbers: true
+}
diff --git a/stats/qml/statsview.qrc b/stats/qml/statsview.qrc
new file mode 100644
index 000000000..aeb65167e
--- /dev/null
+++ b/stats/qml/statsview.qrc
@@ -0,0 +1,5 @@
+<RCC>
+ <qresource prefix="/qml">
+ <file>statsview.qml</file>
+ </qresource>
+</RCC>