diff options
Diffstat (limited to 'examples/qmlmultigraph/qml/qmlmultigraph/main.qml')
-rw-r--r-- | examples/qmlmultigraph/qml/qmlmultigraph/main.qml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/qmlmultigraph/qml/qmlmultigraph/main.qml b/examples/qmlmultigraph/qml/qmlmultigraph/main.qml index 23465c75..1761ed34 100644 --- a/examples/qmlmultigraph/qml/qmlmultigraph/main.qml +++ b/examples/qmlmultigraph/qml/qmlmultigraph/main.qml @@ -60,16 +60,18 @@ Item { itemLabelFormat: "Pop density at (@xLabel N, @zLabel E): @yLabel" ItemModelSurfaceDataProxy { itemModel: data.surfaceData - // Mapping model roles to surface series rows, columns, and values. - rowRole: "longitude" - columnRole: "latitude" - valueRole: "pop_density" + // The surface data points are not neatly lined up in rows and columns, + // so we define explicit row and column roles. + rowRole: "row" + columnRole: "col" + xPosRole: "latitude" + zPosRole: "longitude" + yPosRole: "pop_density" } } } } - Rectangle { Layout.fillHeight: true Layout.fillWidth: true |