Solved How to use axis for multiple series?
-
Hello!
I'm using QChart and QLineSeries for my project. I have 3 series on a chart and I want to attach axis to it. Unfortunately, when I attach QValueAxis to the chart, it's ranges are calculated considering one series only.
I'm usingvoid QValueAxis::applyNiceNumbers()
for it.
What potentially can be the issue? -
Hi,
The method uses the min, max and tick values of the axis. So you should ensure that these matches the span required to show all your series.
-
@SGaist, that has solved my problem. Thank you!