Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// Copyright (C) 2024 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick
|
||||
import QtGraphs
|
||||
|
||||
GraphsView {
|
||||
width: 300
|
||||
height: 300
|
||||
|
||||
AreaSeries {
|
||||
name: "AreaSeries"
|
||||
upperSeries: LineSeries {
|
||||
XYPoint { x: 0; y: 1.5 }
|
||||
XYPoint { x: 1; y: 3 }
|
||||
XYPoint { x: 3; y: 4.3 }
|
||||
XYPoint { x: 6; y: 1.1 }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2024 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick
|
||||
import QtGraphs
|
||||
|
||||
GraphsView {
|
||||
width: 300
|
||||
height: 300
|
||||
|
||||
BarSeries {
|
||||
id: barSeries
|
||||
BarSet { id: set1; label: "Set1"; values: [2, 2, 3] }
|
||||
BarSet { id: set2; label: "Set2"; values: [5, 1, 2] }
|
||||
BarSet { id: set3; label: "Set3"; values: [3, 5, 8] }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
// Copyright (C) 2023 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtGraphs
|
||||
|
||||
Bars3D {
|
||||
width: 300
|
||||
height: 300
|
||||
Bar3DSeries {
|
||||
ItemModelBarDataProxy {
|
||||
itemModel: ListModel {
|
||||
ListElement{ row: "row 1"; column: "column 1"; value: "1"; }
|
||||
ListElement{ row: "row 1"; column: "column 2"; value: "2"; }
|
||||
ListElement{ row: "row 1"; column: "column 3"; value: "3"; }
|
||||
}
|
||||
|
||||
rowRole: "row"
|
||||
columnRole: "column"
|
||||
valueRole: "value"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Copyright (C) 2024 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick
|
||||
import QtGraphs
|
||||
|
||||
GraphsView {
|
||||
width: 300
|
||||
height: 300
|
||||
|
||||
LineSeries {
|
||||
id: lineSeries
|
||||
XYPoint { x: 0; y: 2 }
|
||||
XYPoint { x: 1; y: 1.2 }
|
||||
XYPoint { x: 2; y: 3.3 }
|
||||
XYPoint { x: 5; y: 2.1 }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2024 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick
|
||||
import QtGraphs
|
||||
|
||||
GraphsView {
|
||||
width: 300
|
||||
height: 300
|
||||
|
||||
PieSeries {
|
||||
id: pieSeries
|
||||
PieSlice { label: "Slice1"; value: 13.5 }
|
||||
PieSlice { label: "Slice2"; value: 10.9 }
|
||||
PieSlice { label: "Slice3"; value: 8.6 }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
// Copyright (C) 2023 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtGraphs
|
||||
|
||||
Scatter3D {
|
||||
width: 300
|
||||
height: 300
|
||||
Scatter3DSeries {
|
||||
ItemModelScatterDataProxy {
|
||||
itemModel: ListModel {
|
||||
ListElement{ x: "1"; y: "2"; z: "3"; }
|
||||
ListElement{ x: "2"; y: "3"; z: "4"; }
|
||||
ListElement{ x: "3"; y: "4"; z: "1"; }
|
||||
}
|
||||
|
||||
xPosRole: "x"
|
||||
yPosRole: "y"
|
||||
zPosRole: "z"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Copyright (C) 2024 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick
|
||||
import QtGraphs
|
||||
|
||||
GraphsView {
|
||||
width: 300
|
||||
height: 300
|
||||
|
||||
ScatterSeries {
|
||||
id: lineSeries
|
||||
XYPoint { x: 1; y: 1 }
|
||||
XYPoint { x: 2; y: 4 }
|
||||
XYPoint { x: 4; y: 2 }
|
||||
XYPoint { x: 5; y: 5 }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Copyright (C) 2024 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick
|
||||
import QtGraphs
|
||||
|
||||
GraphsView {
|
||||
width: 300
|
||||
height: 300
|
||||
|
||||
SplineSeries {
|
||||
id: splineSeries
|
||||
XYPoint { x: 1; y: 1 }
|
||||
XYPoint { x: 2; y: 4 }
|
||||
XYPoint { x: 4; y: 2 }
|
||||
XYPoint { x: 5; y: 5 }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// Copyright (C) 2023 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtGraphs
|
||||
|
||||
Surface3D {
|
||||
width: 300
|
||||
height: 300
|
||||
Surface3DSeries {
|
||||
ItemModelSurfaceDataProxy {
|
||||
itemModel: ListModel {
|
||||
ListElement{ row: "1"; column: "1"; y: "1"; }
|
||||
ListElement{ row: "1"; column: "2"; y: "2"; }
|
||||
ListElement{ row: "2"; column: "1"; y: "3"; }
|
||||
ListElement{ row: "2"; column: "2"; y: "4"; }
|
||||
}
|
||||
|
||||
rowRole: "row"
|
||||
columnRole: "column"
|
||||
yPosRole: "y"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user