Commit bd48a7d4 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Set Line chart maximum history to amount of displayed items

Otherwise the chart will just be cut off if the actual displayed range
is larger.
parent 93f89648
......@@ -34,6 +34,7 @@ Charts.LineChart {
//property var sensors: root.controller.highPrioritySensorIds
readonly property alias sensorsModel: sensorsModel
property int maximumHistory: root.controller.faceConfiguration.rangeToX - root.controller.faceConfiguration.rangeFromX
Layout.minimumWidth: Kirigami.Units.gridUnit * 8
......@@ -69,7 +70,7 @@ Charts.LineChart {
column: index
row: 0
roleName: "Value"
maximumHistory: 50
maximumHistory: chart.maximumHistory
onObjectAdded: {
chart.insertValueSource(index, object)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment