reichlab / predtimechart

MIT License
0 stars 1 forks source link

tooltip not working at boundary of data and forecast #21

Closed nickreich closed 1 year ago

nickreich commented 1 year ago

There is a useful tooltip that shows the date and count when you hover on/near a point on the chart. However, there is never a tooltip that is available at the last point in the time-series which also is the first point in the forecast. E.g. in the below screenshot, I can get a tooltip for Nov 26 (truth data as of 12/3) and Dec 10 (for the forecast) , but not one for Dec 3 (which should also show a truth data value as of 12/3).

image

nickreich commented 1 year ago

Noting that when there is separation between current and as-of truth the current truth value is available on the tooltip. Could this be an issue of overlapping lines? e.g. if the phantom forecast point that is needed to start the cone of uncertainty overlaps the actual data, maybe it masks the tooltip?

image