diff options
Diffstat (limited to 'src/datavisualizationqml/designer/default/Scatter3D.qml')
-rw-r--r-- | src/datavisualizationqml/designer/default/Scatter3D.qml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/datavisualizationqml/designer/default/Scatter3D.qml b/src/datavisualizationqml/designer/default/Scatter3D.qml new file mode 100644 index 00000000..5a6cd261 --- /dev/null +++ b/src/datavisualizationqml/designer/default/Scatter3D.qml @@ -0,0 +1,23 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +import QtQuick 2.0 +import QtDataVisualization 1.2 + +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" + } + } +} |