11import org.kde.quickcharts as Charts
12import org.kde.quickcharts.controls
19 property alias valueSources: lineChart.valueSources
20 property alias names: nameSource.array
21 property alias color: colorSource.baseColor
23 property alias lineWidth: lineChart.lineWidth
24 property alias fillOpacity: lineChart.fillOpacity
25 property alias stacked: lineChart.stacked
27 property alias chart: lineChart
28 property alias legend: legend
29 property alias xLabels: xAxisLabels
30 property alias yLabels: yAxisLabels
32 property alias verticalLinesVisible: verticalLines.visible
33 property alias horizontalLinesVisible: horizontalLines.visible
35 property alias xRange: lineChart.xRange
36 property alias yRange: lineChart.yRange
38 property alias xAxisSource: xAxisLabels.source
39 property alias yAxisSource: yAxisLabels.source
41 property alias pointDelegate: lineChart.pointDelegate
43 background: Rectangle { color: Theme.backgroundColor }
51 anchors.fill: lineChart
57 major.color:
Qt.rgba(0.8, 0.8, 0.8, 1.0)
61 minor.color:
Qt.rgba(0.8, 0.8, 0.8, 1.0)
67 anchors.fill: lineChart
75 major.color:
Qt.rgba(0.8, 0.8, 0.8, 1.0)
79 minor.color:
Qt.rgba(0.8, 0.8, 0.8, 1.0)
88 bottom: xAxisLabels.top
93 source: Charts.ChartAxisSource { chart: lineChart; axis: Charts.ChartAxisSource.YAxis; itemCount: 5 }
100 left: yAxisLabels.visible ? yAxisLabels.right : parent.left
106 source: Charts.ChartAxisSource { chart: lineChart; axis: Charts.ChartAxisSource.XAxis; itemCount: 5 }
113 left: yAxisLabels.visible ? yAxisLabels.right : parent.left
115 bottom: parent.bottom
116 bottomMargin: Theme.smallSpacing
126 left: yAxisLabels.visible ? yAxisLabels.right : parent.left
128 bottom: xAxisLabels.visible ? xAxisLabels.top : legend.top
131 xRange.automatic:
true
132 yRange.automatic:
true
134 colorSource: Charts.ColorGradientSource { id: colorSource; baseColor: Theme.highlightColor; itemCount: lineChart.valueSources.length }
135 nameSource: Charts.ArraySource { id: nameSource; array: [
"1",
"2",
"3",
"4",
"5"] }
An item that uses a delegate to place axis labels on a chart.
An item that renders a set of lines to make a grid for a chart.
A pre-made legend control that displays a legend for charts.
QTextStream & left(QTextStream &stream)
QTextStream & right(QTextStream &stream)