Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QwtPlot how to create an weekly Xaxis?
gronerth last edited by
I was trying to find a method to create an "weekly X axis". I mean I have a bunch of data, and i know that each fixed size it represents a data in a specific week (for example data from 0 to 200 -> means week 1...), so instead of draw in the y axis a label for each specific data, i would like to draw a "week label" for a group of data, something like this:
!http://22.214.171.124/cacheimages/K552/vault_month.png(Weekly X Axis)!
I know that i could use the class QwtScaleDraw to reimplement the virtual function: virtual QwtText label(double v) const, but i don't know how to represent a group of data to a single label...
Thanks in advance