holoviz / holoviews

With Holoviews, your data visualizes itself.
https://holoviews.org
BSD 3-Clause "New" or "Revised" License
2.7k stars 402 forks source link

Possible to get hover on stacked area plots? #4492

Open rsignell-usgs opened 6 years ago

rsignell-usgs commented 6 years ago

Is is possible to get hover working on stacked area plots like the ones shown here: https://hvplot.pyviz.org/user_guide/Plotting.html#Area 2018-10-09_16-09-11

philippjfr commented 5 years ago

Sorry for the lack of reply, this is problematic for two reasons:

  1. They are drawn as polygons and therefore would only support a single value per area instead of values for each x-value.
  2. The data is modified ahead of time to apply the stacking, which means that the hover y-values would be offset by all the areas that are below it.

I'll leave this open but it's certainly not trivial.

jbednar commented 5 years ago

For issue 2 it seems that the original un-offset values could be saved in a column provided as a value dimension so that they would be available for hovering. For issue 1, could maybe provide the offsetting as an explicit operation that could be done on the points as well as the overall area, and then the points could be overlaid (transparently if need be) so that they can provide per-point hovering? Seems doable but complicated.

philippjfr commented 4 years ago

This issue was transferred to HoloViews because it requires adding an invisible layer with the hover information.