Opened 3 years ago

Closed 20 months ago

#275 closed enhancement (completed)

Line charts should have an option to display a dynamic legend at cursor position

Reported by: ghorwin Owned by: ghorwin
Priority: major Milestone: 2.4.0
Version: 2.2.x Keywords:
Cc: Operating System: all

Description

  • the nearest 5 lines at the cursor are listed in the legend
  • legend shows series icon (line+marker) and abbreviated name and value at (close to) cursor

Optional features:

  • Interpolation if nearest point has an x-value too far away from cursor? (e.g. more than 5 pixels away)
  • Draw points on selected lines that match the shown y-value in the legend

Change History (5)

comment:1 by ghorwin, 3 years ago

Owner: set to ghorwin
Status: newaccepted

comment:2 by ghorwin, 3 years ago

Konzept: SCI::PlotPicker erweitern:

  • Flag, welches nur bei LineSeries-Diagrammen gesetzt wird schaltet Legendenmodus an (optional, Eigenschaft im "View"-Menü)
  • Solange Flag gesetzt und Picker im Tracker-Modus (nicht Rubberband-Modus), wird eine zusätzliche innere Legende gezeigt -> Position jeweils so, dass Cursor wenn möglich nicht verdeckt wird
  • Legende zeigt x-Position als Titel und Liste der dichtesten 5-10 Serien (konfigurierbar?)
  • Je Legendeneintrag wird der y-Wert beim dichtesten Punkt der Serie angezeigt

Problematisch:

  • QwtPlotCurve::closestPoint() geht nur die Punkte der Serie durch, interpoliert aber nicht. Wenn man weit reinzoomt kann es sein, dass der Cursor zwar über einer Linie liegt, diese aber nicht angezeigt wird, weil der nächste Linienpunkt zu weit weg ist. Eventuell closestPoint() überladen oder durch closestInterpolatedPoint() ersetzen

comment:3 by ghorwin, 2 years ago

Milestone: 2.3.02.4.0

Milestone renamed

comment:4 by ghorwin, 20 months ago

Milestone: 2.4.02.4.1

Milestone renamed

comment:5 by ghorwin, 20 months ago

Milestone: 2.4.12.4.0
Resolution: completed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.