I 've created 2 heatmaps (one for each year) from the following csv https://drive.google.com/file/d/1JRgKCMZsv_e8UifbAz-OuLteBrdZTulb/view?usp=sharing using this code
import pandas as pd
import holoviews as hv
from holoviews import opts
hv.extension('bokeh')
data = pd.read_csv('book6.csv', delimiter=';')
vdims = ('V132', 'SE132')
heatmaps = []
for etos in [2015, 2016]:
data1 = data[data['YEAR'] == etos]
ds = hv.Dataset(data1, ['TF14', 'NOMOS'], vdims)
heat = hv.HeatMap(ds)
heat.opts(title_format=str(etos))
heatmaps.append(heat)
layout = heatmaps[0] + heatmaps[1]
layout.opts(opts.HeatMap(width=500, height=600, tools=['hover'], colorbar=True, toolbar='above', xrotation=45))
hv.save(layout, 'test.html')
Does someone knows a way when I hover over a cell in the first heatmap to show tooltips and in the corresponding cell in the second one?
Thanks in advance.