Hi ,
I need to implement something like this :
____________________________________
| | Di 02.01 | Mi 03.01 | Do 04.01 | |
------------------------------------------
____________________________________
| Mi 03.01
------------------------------------------
- the intervals have alternate background colors
- the scale has to be aligned to the plot all the time ( solved partially by setMinBorderDist)
- labels are not allowed to be drawn outside the scale
- zooming is restricted to min : 24 hours - max 5 days
I have taken a good look on all the samples - especially Friedberg and Distrowatch and unfortunately the solutions are not appliable
When having a 24 hours interval there are no ticks and this pretty much has a big impact on how the scale is drawn.
I actually managed to obtain some experimental results but I am not satisfied with the solution because I couldn't avoid changing QwtScaleDraw and QwtAbstractScaleDraw due to how QwtAbstractScaleDraw::draw ,QwtScaleDraw::drawLabels, QwtScaleDraw::drawticks. QwtScaleDraw::drawBackbone are implemented.
Basically my plan would be to expand the virtual interface of QwtScaleDraw in order to give more flexibility in drawing the scale
Since I am not experienced with qwt (about 2 months).... the question is now if I am going in the right direction or am I overlooking something simple.
If not then any design hints are more than welcome
thank you in advance,
daniel
Bookmarks