// /home/denali/Projects/application/sources/gui/qml/pages/treatment/TreatmentStack.qml:99 // ScreenItem { id: _treatmentTrending } /* ----- TEST: Under the test code, for the plotting of the items ----- Timer { id: _timer property real x1: 0 property real x2: 0 interval: 500 running: _treatmentTrending.visible repeat: true onTriggered: { x1 = x1 + 1 x2 = x2 + 0.1 var r = Math.random() _lineSerries1.append(x1, r * 10 ) _lineSerries2.append(x2, r ) } } Column { anchors.fill: parent anchors.topMargin: Variables.mainMenuHeight Slider { id : _zoomSlider width : parent.width minimum : 0 maximum : 2 step : 0.1 value : 0 onValueChanged: _chartView.zoom(value) } TouchRect { width : 50 height : 50 onClicked: _chartView.zoomReset() } ChartView { id: _chartView title: "Line" width: parent.width height: parent.height - _zoomSlider.height antialiasing: true backgroundColor: Colors.transparent legend.labelColor: Colors.white ValueAxis { id: xAxis1 color: Colors.white min: 0 max: _timer.x1 } ValueAxis { id: yAxis1 color: Colors.white min: 0 max: 10 } SplineSeries { id: _lineSerries1 name: "LineSeries" axisX: xAxis1 axisY: yAxis1 } ValueAxis { id: xAxis2 color: Colors.white min: 0 max: _timer.x2 } ValueAxis { id: yAxis2 color: Colors.white labelsColor: Colors.red min: 0 max: 10 } SplineSeries { id: _lineSerries2 name: "LineSeries" axisX: xAxis2 axisY: yAxis2 } } } */