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 property alias highlightEnabled: legend.highlightEnabled
45 background: Rectangle { color: Theme.backgroundColor }
53 anchors.fill: lineChart
59 major.color:
Qt.rgba(0.8, 0.8, 0.8, 1.0)
63 minor.color:
Qt.rgba(0.8, 0.8, 0.8, 1.0)
69 anchors.fill: lineChart
77 major.color:
Qt.rgba(0.8, 0.8, 0.8, 1.0)
81 minor.color:
Qt.rgba(0.8, 0.8, 0.8, 1.0)
90 bottom: xAxisLabels.top
95 source: Charts.ChartAxisSource { chart: lineChart; axis: Charts.ChartAxisSource.YAxis; itemCount: 5 }
102 left: yAxisLabels.visible ? yAxisLabels.right : parent.left
108 source: Charts.ChartAxisSource { chart: lineChart; axis: Charts.ChartAxisSource.XAxis; itemCount: 5 }
115 left: yAxisLabels.visible ? yAxisLabels.right : parent.left
117 bottom: parent.bottom
118 bottomMargin: Theme.smallSpacing
128 left: yAxisLabels.visible ? yAxisLabels.right : parent.left
130 bottom: xAxisLabels.visible ? xAxisLabels.top : legend.top
133 xRange.automatic:
true
134 yRange.automatic:
true
136 colorSource: Charts.ColorGradientSource { id: colorSource; baseColor: Theme.highlightColor; itemCount: lineChart.valueSources.length }
137 nameSource: Charts.ArraySource { id: nameSource; array: [
"1",
"2",
"3",
"4",
"5"] }
139 highlight: legend.highlightedIndex
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)