I have a holoviews scatter plot with many items in the legend which only a limited number of items are visible in the plot. I want to find a way to be able to see all items in the legends either by being able to scroll through legend items or reshaping the legend presentation. This is a sample piece of code that I have:
import pandas as pd
import numpy as np
import holoviews as hv
hv.extension('bokeh')
df = pd.DataFrame({'index': np.arange(0, 1000),
'A': np.random.randint(1,40, 1000),
'B': np.random.uniform(-1, 1, 1000)})
scat = df.hvplot(x='index', y='B', kind='scatter', by='A', size=10)
scat.opts(width=900, height=500,
legend_opts={"location": "top_left", "click_policy": "hide", "title_text_font_size": "10px",
"label_text_font_size": "10px", "glyph_height": 10, "spacing": 1,
"background_fill_color": 'blue', "background_fill_alpha":0.1})