im using QML QtCharts to plot XYPoint
in a LineSeries
. everything works fine except the problem that i have with relative position of x and y axes which specifically are ValueAxis
,
im looking for a solution to make x axis lay on the line y = 0 like picture below
as far as i can see, there is no official solution for my problem and i can just align x axis to top or bottom of the PlotArea
and not in the y = 0 ,so any advise or help would be greatly appreciated
ChartView {
id: chartView
ValueAxis {
id: axisY1
min: -1
max: 4
}
ValueAxis {
id: axisY2
min: -10
max: 5
}
ValueAxis {
id: axisX
min: 0
max: 1024
}
LineSeries {
id: lineSeries1
name: "signal 1"
axisX: axisX
axisY: axisY1
}