Warning, /libraries/kqtquickcharts/demo/dynamicdata/Chart.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  *  Copyright 2014  Sebastian Gottfried <sebastiangottfried@web.de>
0003  *
0004  *  This library is free software; you can redistribute it and/or
0005  *  modify it under the terms of the GNU Lesser General Public
0006  *  License as published by the Free Software Foundation; either
0007  *  version 2.1 of the License, or (at your option) version 3, or any
0008  *  later version accepted by the membership of KDE e.V. (or its
0009  *  successor approved by the membership of KDE e.V.), which shall
0010  *  act as a proxy defined in Section 6 of version 3 of the license.
0011  *
0012  *  This library is distributed in the hope that it will be useful,
0013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0015  *  Lesser General Public License for more details.
0016  *
0017  *  You should have received a copy of the GNU Lesser General Public
0018  */
0019 
0020 import QtQuick 2.2
0021 import org.kde.charts 0.1
0022 
0023 LineChart {
0024     id: chart
0025     model: ChartModel {
0026         columns: chart.dimensions.length
0027     }
0028     width: parent.width
0029     height: 400
0030     dimensions: [
0031         Dimension {
0032             id: funDimension
0033             color: "#ffd500"
0034             dataColumn: 0
0035             minimumValue: 0.0
0036             maximumValue: 1.0
0037             label: "Fun"
0038             precision: 0
0039             unit:" %"
0040             unitFactor: 100.0
0041         },
0042         Dimension {
0043             id: profitDimension
0044             color: "#ff0000"
0045             dataColumn: 1
0046             minimumValue: 0.0
0047             maximumValue: 1.0
0048             label: "Profit"
0049             precision: 0
0050             unit:" %"
0051             unitFactor: 100.0
0052         }
0053     ]
0054 }