In my application I am dealing with pretty large data sets (millions of data points). Most of them are not rendered as they are outside of the current range.

Is there a way that I can provide a vector that is only a view on the data, rather than a copy of the data if I ensure that it is already sorted?

Something like https://github.com/mclow/snippets/blob/master/array_view.cpp ?

(I suspect the answer is no, but is it something that could be added in future?)

I suppose the other way, is to only provide to QCP the values that are within the current range...