@@ -0,0 +1,57 | |||||
|
1 | /**************************************************************************** | |||
|
2 | ** | |||
|
3 | ** Copyright (C) 2012 Digia Plc | |||
|
4 | ** All rights reserved. | |||
|
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com | |||
|
6 | ** | |||
|
7 | ** This file is part of the Qt Commercial Charts Add-on. | |||
|
8 | ** | |||
|
9 | ** $QT_BEGIN_LICENSE$ | |||
|
10 | ** Licensees holding valid Qt Commercial licenses may use this file in | |||
|
11 | ** accordance with the Qt Commercial License Agreement provided with the | |||
|
12 | ** Software or, alternatively, in accordance with the terms contained in | |||
|
13 | ** a written agreement between you and Digia. | |||
|
14 | ** | |||
|
15 | ** If you have questions regarding the use of this file, please use | |||
|
16 | ** contact form at http://qt.digia.com | |||
|
17 | ** $QT_END_LICENSE$ | |||
|
18 | ** | |||
|
19 | ****************************************************************************/ | |||
|
20 | ||||
|
21 | import QtQuick 1.0 | |||
|
22 | import QtCommercial.Chart 1.0 | |||
|
23 | ||||
|
24 | Rectangle { | |||
|
25 | anchors.fill: parent | |||
|
26 | ||||
|
27 | Chart { | |||
|
28 | title: "Scatters" | |||
|
29 | anchors.fill: parent | |||
|
30 | theme: Chart.ChartThemeBlueCerulean | |||
|
31 | ||||
|
32 | ScatterSeries { | |||
|
33 | id: scatter1 | |||
|
34 | name: "Scatter1" | |||
|
35 | points: [ | |||
|
36 | XyPoint { x: 1.5; y: 1.5 }, | |||
|
37 | XyPoint { x: 1.5; y: 1.6 }, | |||
|
38 | XyPoint { x: 1.57; y: 1.55 }, | |||
|
39 | XyPoint { x: 1.8; y: 1.8 }, | |||
|
40 | XyPoint { x: 1.9; y: 1.6 }, | |||
|
41 | XyPoint { x: 2.1; y: 1.3 }, | |||
|
42 | XyPoint { x: 2.5; y: 2.1 } | |||
|
43 | ] | |||
|
44 | } | |||
|
45 | ScatterSeries { | |||
|
46 | name: "Scatter2" | |||
|
47 | points: [ | |||
|
48 | XyPoint { x: 2.0; y: 2.0 }, | |||
|
49 | XyPoint { x: 2.0; y: 2.1 }, | |||
|
50 | XyPoint { x: 2.07; y: 2.05 }, | |||
|
51 | XyPoint { x: 2.2; y: 2.9 }, | |||
|
52 | XyPoint { x: 2.4; y: 2.7 }, | |||
|
53 | XyPoint { x: 2.67; y: 2.65 } | |||
|
54 | ] | |||
|
55 | } | |||
|
56 | } | |||
|
57 | } |
General Comments 0
You need to be logged in to leave comments.
Login now