i have graph with x values 0, 1, 2 ... 4686 but those values translate to 0, 0.00051, 0.00102 ... 2.38986. And i want to display translated values on my xAxis with zoom support(fixedTicker wouldn't work i want to get values in between points) .
I have some ideas how i could achieve this:
The most straight forward way is to use translated values as graph data but some functions like moving tracer suddenly become not so pretty.
Other solutions i though of is to use 0.00051*1000000 for graph data and 0.00051 for xAxis values or QCPAxisTicker method
generate (const QCPRange &range, const QLocale &locale, QChar formatChar, int precision, QVector< double > &ticks, QVector< double > *subTicks, QVector< QString > *tickLabels)
But those 2 solutions seem complicated. What's the best approach here?