zidatalab / ambulante_notfaelle

Echtzeit Informationen zu ambulanten Notfällen
Apache License 2.0
0 stars 0 forks source link

Add minmax annotation to plots #28

Open lekroll opened 2 years ago

lekroll commented 2 years ago

cf. https://plotly.com/javascript/text-and-annotations/ for plotly implementation

Pseudocode

  1. Store x range.
  2. sort data by y value.
  3. Get first item as first annotation point
  4. Get last item as second annotation point
  5. If x diff of 2 items < 1/4 x range, show only max. Else show both
lekroll commented 1 year ago

Only for timeseries