Here is the sample code -
p = Bar(df, values=blend(‘M1’,‘M2’,‘M3’,‘M4’,‘P1’,‘P2’,‘P3’,‘P4’,
name=‘Severity Count’, labels_name=‘severity’),
label=cat(columns=‘Code’,
sort=False), stack=cat(columns=‘severity’),
legend=‘top_right’, title=‘Check if any Particular Code leads to a specific severity’, plot_width=1100,
plot_height=600, tools=“wheel_zoom,pan,reset,resize,save”,
color=[’#87CEFA’,’#9BC4E2’,’#6CA6CD’,’#325C74’,’#EE7942’,’#CD6839’,’#8A360F’,’#5C4033’], webgl=True)
How can we make the legend horizontal? I have got a lot of examples where the data is given on the code or something similar but not something like this. I want to give the orientation command inside Bar itself. Can it be done?
If not, it is hard for me to map the columns with the Legends.
