gral icon indicating copy to clipboard operation
gral copied to clipboard

How to set user-defined legends of BarPlot?

Open dwilches opened this issue 7 years ago • 2 comments

I'm plotting 2 data series in a Bar Plot, each one with several data points. It looks like this:

image

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?

dwilches avatar Apr 26 '18 21:04 dwilches

I am doing the same kind of bar plot but I do not know how to modify the legend. Did you do it?

ferortega avatar Apr 17 '20 18:04 ferortega

Nope, we ended up changing our process so we could use Chart.js

dwilches avatar Apr 18 '20 02:04 dwilches