Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15.0
-
None
-
Tested on Windows MSVC2019 64 bits
Description
Seeing the structure of LineSeries or PieSeries it seems natural to use repeater to set the values of the XYPoint or PieSlice, but when a Repeater is insert into ChartView it do not work at all.
The following code for example generates an empty LineSeries
import QtQuick 2.15 import QtQuick.Window 2.15 import QtCharts 2.15 import QtQuick.Controls 2.15 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") ListModel { id: exampleModel ListElement { x: 1.25 y: 2.45 } ListElement { x: 2.68 y: 3.25 } ListElement { x: 1.42 y: 1.95 } } ChartView { anchors.fill: parent legend.alignment: Qt.AlignBottom antialiasing: true LineSeries { id: exampleLine Repeater { model: exampleModel delegate: XYPoint{ x: model.x y: model.y } } } } }
Replacing LineSeries with PieSeries gives exactly the same result (an empty PieSeries)