Вот код: < /p>
Код: Выделить всё
GraphsView {
Layout.columnSpan: 3
Layout.minimumHeight: 160
Layout.maximumHeight: 160
Layout.minimumWidth: 72+768+18+28
Layout.maximumWidth: 72+768+18+28
Layout.margins: {top:0; bottom:0; left:0; right:0}
Layout.alignment: Qt.AlignTop | Qt.AlignRight
marginTop: 8
marginBottom: 18
marginLeft: 18
marginRight: 20-1 + 40
antialiasing: false
theme: GraphsTheme {
//colorScheme: GraphsTheme.ColorScheme.Dark
backgroundColor: colorBG
plotAreaBackgroundColor: colorBG
labelTextColor : colorGraphs
}
axisX: ValueAxis {
id: histxaxis
min: 0
max: Math.pow(2,16)
tickAnchor: 0
tickInterval: Math.pow(2,16)/16
labelFormat: "%.0f"
}
axisY: ValueAxis {
id: histyaxis
min: 0
max: 4000
tickAnchor: 0
tickInterval: 4000/4
labelFormat: "%.0f"
}
/*
LineSeries {
id: histogramLineSeries
color: "#38ad6b"
width: 1.25
}
*/
AreaSeries {
id: histogramAreaSeries
color: "#078AFE"
borderColor: colorLineGraph
borderWidth: 3
// Upper boundary of the area
upperSeries: LineSeries {
id: histogramLineSeries
// Data points will be added dynamically
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... -graphs-2d