summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/qmllegend/qml/qmllegend/Data.qml
blob: ab5a8554eefeb577314dd8763680a5391e6c49bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd
** All rights reserved.
** For any questions to The Qt Company, please use contact form at http://qt.io
**
** This file is part of the Qt Data Visualization module.
**
** Licensees holding valid commercial license for Qt may use this file in
** accordance with the Qt License Agreement provided with the Software
** or, alternatively, in accordance with the terms contained in a written
** agreement between you and The Qt Company.
**
** If you have questions regarding the use of this file, please use
** contact form at http://qt.io
**
****************************************************************************/

import QtQuick 2.1

Item {
    property alias model: dataModel

    ListModel {
        id: dataModel
        ListElement{ year: "2010"; month: "Jan"; s1: "-14"; s2: "-15"; s3: "-15" }
        ListElement{ year: "2010"; month: "Feb"; s1: "-15"; s2: "-16"; s3: "-9" }
        ListElement{ year: "2010"; month: "Mar"; s1: "-7";  s2: "-4";  s3: "-2" }
        ListElement{ year: "2010"; month: "Apr"; s1: "3";   s2: "2";   s3: "2" }
        ListElement{ year: "2010"; month: "May"; s1: "7";   s2: "9";   s3: "10" }
        ListElement{ year: "2010"; month: "Jun"; s1: "12";  s2: "13";  s3: "22" }
        ListElement{ year: "2010"; month: "Jul"; s1: "18";  s2: "19";  s3: "24" }
        ListElement{ year: "2010"; month: "Aug"; s1: "15";  s2: "13";  s3: "16" }
        ListElement{ year: "2010"; month: "Sep"; s1: "6";   s2: "3";   s3: "4" }
        ListElement{ year: "2010"; month: "Oct"; s1: "1";   s2: "2";   s3: "-2" }
        ListElement{ year: "2010"; month: "Nov"; s1: "-2";  s2: "-5";  s3: "-6" }
        ListElement{ year: "2010"; month: "Dec"; s1: "-3";  s2: "-3";  s3: "-9" }

        ListElement{ year: "2011"; month: "Jan"; s1: "-12"; s2: "-11"; s3: "-14" }
        ListElement{ year: "2011"; month: "Feb"; s1: "-13"; s2: "-12"; s3: "-10" }
        ListElement{ year: "2011"; month: "Mar"; s1: "-6";  s2: "-4";  s3: "-3" }
        ListElement{ year: "2011"; month: "Apr"; s1: "0";   s2: "1";   s3: "3" }
        ListElement{ year: "2011"; month: "May"; s1: "4";   s2: "12";  s3: "11" }
        ListElement{ year: "2011"; month: "Jun"; s1: "9";   s2: "17";  s3: "23" }
        ListElement{ year: "2011"; month: "Jul"; s1: "15";  s2: "22";  s3: "25" }
        ListElement{ year: "2011"; month: "Aug"; s1: "12";  s2: "15";  s3: "12" }
        ListElement{ year: "2011"; month: "Sep"; s1: "2";   s2: "4";   s3: "7" }
        ListElement{ year: "2011"; month: "Oct"; s1: "-2";  s2: "4";   s3: "-4" }
        ListElement{ year: "2011"; month: "Nov"; s1: "-4";  s2: "-8";  s3: "-5" }
        ListElement{ year: "2011"; month: "Dec"; s1: "-6";  s2: "-6";  s3: "-7" }

        ListElement{ year: "2012"; month: "Jan"; s1: "-10"; s2: "-19"; s3: "-11" }
        ListElement{ year: "2012"; month: "Feb"; s1: "-11"; s2: "-17"; s3: "-4" }
        ListElement{ year: "2012"; month: "Mar"; s1: "-6";  s2: "-3";  s3: "-1" }
        ListElement{ year: "2012"; month: "Apr"; s1: "5";   s2: "1";   s3: "2" }
        ListElement{ year: "2012"; month: "May"; s1: "9";   s2: "12";  s3: "13" }
        ListElement{ year: "2012"; month: "Jun"; s1: "11";  s2: "16";  s3: "26" }
        ListElement{ year: "2012"; month: "Jul"; s1: "18";  s2: "20";  s3: "23" }
        ListElement{ year: "2012"; month: "Aug"; s1: "19";  s2: "12";  s3: "12" }
        ListElement{ year: "2012"; month: "Sep"; s1: "9";   s2: "1";   s3: "3" }
        ListElement{ year: "2012"; month: "Oct"; s1: "-3";  s2: "2";   s3: "-1" }
        ListElement{ year: "2012"; month: "Nov"; s1: "-5";  s2: "-4";  s3: "-3" }
        ListElement{ year: "2012"; month: "Dec"; s1: "-7";  s2: "-2";  s3: "-4" }

        ListElement{ year: "2013"; month: "Jan"; s1: "-18"; s2: "-19"; s3: "-19" }
        ListElement{ year: "2013"; month: "Feb"; s1: "-17"; s2: "-19"; s3: "-12" }
        ListElement{ year: "2013"; month: "Mar"; s1: "-9";  s2: "-6";  s3: "-5" }
        ListElement{ year: "2013"; month: "Apr"; s1: "0";   s2: "0";   s3: "0" }
        ListElement{ year: "2013"; month: "May"; s1: "4";   s2: "7";   s3: "9" }
        ListElement{ year: "2013"; month: "Jun"; s1: "9";   s2: "11";  s3: "18" }
        ListElement{ year: "2013"; month: "Jul"; s1: "13";  s2: "15";  s3: "20" }
        ListElement{ year: "2013"; month: "Aug"; s1: "10";  s2: "11";  s3: "13" }
        ListElement{ year: "2013"; month: "Sep"; s1: "3";   s2: "1";   s3: "2" }
        ListElement{ year: "2013"; month: "Oct"; s1: "0";   s2: "1";   s3: "-4" }
        ListElement{ year: "2013"; month: "Nov"; s1: "-5";  s2: "-6";  s3: "-5" }
        ListElement{ year: "2013"; month: "Dec"; s1: "-6";  s2: "-7";  s3: "-10" }
    }
}