Paste #Ck7PGnvnR

import org.kde.quickcharts 1.0 as Charts
import org.kde.quickcharts.controls 1.0 as ChartsControls

Item {
	id: visualization

	property var volumes: []
        // volumes is updated from the parent item to contain actual data when it's available

	onVolumesChanged: console.log(volumes)

	ChartsControls.LineChartControl {
		id: lineChart

		anchors.fill: parent
		valueSources: [
			Charts.ArraySource { array: visualization.volumes }
		]
	}
}