Basic `vdims` question

Hello,

I have a basic question about the use of vdims and Curve.

What does passing multiple vdims do? The resulting plot only displays the first vdim so what is the point? For example.

features_df  = pd.DataFrame({['v': [1,2,3], 'f_2_3': [2,3,4], 'f_1_2':[10, 11, 12], 't': [5,6,7]})

hv.Curve(features_df, kdims=['t'], vdims=['v', 'f_2_3', 'f_1_2'])

Thanks,

Douglas

Hi, all the vdims you pass to your Curve will be added to the data of the graph. If you add the hover tool

hv.Curve(features_df, kdims=['t'], vdims=['v', 'f_2_3', 'f_1_2']).opts(tools=['hover'])

the hover will display all the vdims.

1 Like

Ahhh! Of course. I have used this before.

Thank you.