Basically I was trying to solve this stackoverflow question on grouped barcharts.
The goal is to add a legend to a grouped barchart and remove xticks.
https://stackoverflow.com/questions/59679386/holoviews-remove-variables-names-from-x-axis-on-bar-chart
I gave it a go, but I don’t know how I can add a legend to a grouped barchart. I tried legend=True
, but that didn’t work.
I saw this github issue: https://github.com/holoviz/holoviews/issues/3710
This says for a grouped barchart, it is hardcoded that there is no legend. So how can a legend be added? Maybe by getting the bokeh figure?
Then about trying to remove the xticks from the grouped barchart.
I was also unsuccessful. I found this:
https://github.com/holoviz/holoviews/issues/2640
Which comes down to: hv.Curve(range(11)).options(xticks=[(0, 'zero'), (5, 'five'), (10, 'ten')])
But .opts(xticks=[(0, 0)])
doesn’t work for grouped barcharts.
Is there a way to get rid of xticks with (grouped) barcharts?
I understand that you sometimes just want a legend instead of extra xticks to explain your categories.