gral
gral copied to clipboard
How to set user-defined legends of BarPlot?
I'm plotting 2 data series in a Bar Plot, each one with several data points. It looks like this:

I would like to add a legend to it that shows two elements: the name of the datasets. But by default the legend of a BarPlot is a ValueLegend so it shows 8 elements instead of 2 (1 element per column instead of 1 per dataset).
How can I configure a different legend with user-defined strings?
I am doing the same kind of bar plot but I do not know how to modify the legend. Did you do it?
Nope, we ended up changing our process so we could use Chart.js