Hi @orome
You can redim
as done below
import numpy as np
import pandas as pd
import holoviews as hv
from holoviews import opts
hv.extension("bokeh")
xs = np.random.rand(100)
ys = np.random.rand(100)
df = pd.DataFrame({"x": xs, "y": ys, "z": xs * ys})
ds = hv.Dataset(df)
# HoloViews
# Customizing hover labels of adjoint histograms
src = ds
x = "x"
y = "y"
dims = ["x", "y"]
scatter = hv.Scatter(src, x, y)
right_histogram = (
hv.Histogram(np.histogram(src[dims[1]], 20))
.redim(x="Oranges", Frequency="Count")
)
top_histogram = (
hv.Histogram(np.histogram(src[dims[0]], 20))
.redim(x="HoloViews", Frequency="Stars")
)
layout = (scatter << right_histogram << top_histogram)
layout.opts(
opts.Scatter(show_title=False, tools=["hover", "box_select"]),
opts.Histogram(tools=["hover", "box_select"]),
opts.Layout(shared_axes=True, shared_datasource=True, merge_tools=True),
)
layout