import QtQuick
import QtGraphs
Window {
id: root
width: 1280
height: 960
visible: true
title: qsTr("Graphs 3D - Surface Graph")
Surface3D {
id: surfaceGraph
anchors.fill: parent
axisY: Value3DAxis {
formatter: LogValue3DAxisFormatter {}
}
Surface3DSeries {
id: surfaceSeries
ItemModelSurfaceDataProxy {
itemModel: dataModel
rowRole: "xPos"
columnRole: "zPos"
yPosRole: "yPos"
}
}
}
ListModel {
id: dataModel
Component.onCompleted: {
for (let i = 0; i <= 10; ++i) {
for (let j = 20; j <= 30; ++j) {
dataModel.append({"xPos": i, "yPos": i * j, "zPos": j})
}
}
}
}
}