![]() ![]() Still can’t get Timestamp to work though would be great if you can report that to the hvplot issues. ![]() "$y": CustomJSHover(code=_hover_code % 1), (selected_col, CustomJSHover(code=_hover_code % 0), import pandas as pdĬonst projections = Bokeh.require("core/util/projections") Ĭonst coords = projections.wgs84_mercator.invert(snap_x, snap_y) Looking at GeoViews internals, it uses CustomJSHover to handle Mercator projections. "Value": np.random.rand(n) * 100, # This will represent 'selected_col' "Timestamp": pd.date_range(start="", periods=n, freq="D"), Also, timestamp is dropped upon rasterize.Ĭan you submit an issue on hvplot regarding this? import pandas as pdįrom import rasterize However, and is in mercator, so it’s not very helpful and I forgot how HoloViews/hvPlot does it internally. 'Value': np.random.rand(n) * 100 # This will represent 'selected_col' ![]() 'Timestamp': pd.date_range(start='', periods=n, freq='D'), Below is the minimal reproducible example. Xticks=DatetimeTicker(desired_num_ticks=12)) Xlabel='Month', ylabel='Cumulative Rainfall (mm)', Ihvplot = ipipeline.hvplot(x='Month-Day-3', y=highlighted_years, Tickfmt = DatetimeTickFormatter(months="%b") ("month-day", = HoverTool(tooltips=tooltips, "datetime"}) I was trying to plot multiple columns as Y asix with hvPlot and use hover tooltip to show the value of the column when mouse hovering on the individual line for the column. I was trying to add a hovering tooltip to each of the lines plotted with hvPlot.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |