What problem does this feature solve?
Currently there doesn't seem to be any option for the legend items to be 'user-interactive' i.e. The chart user can't move them around, or resize the legend.
Being able to reposition the legend is useful for occasions where the legend has to be included in the Axis and when there is limited space to put the legend.
What does the proposed API look like?
Ideally some sort of draggable or userInteractive toggle on the Legend class. So that you can do something like:
legend: [
{
draggable: true, // <--- Like that?
orient: "vertical",
top: POS_FROM_TOP_LEGEND,
left: "2%",
itemWidth: 10,
},
]
What problem does this feature solve?
Currently there doesn't seem to be any option for the legend items to be 'user-interactive' i.e. The chart user can't move them around, or resize the legend.
Being able to reposition the legend is useful for occasions where the legend has to be included in the Axis and when there is limited space to put the legend.
What does the proposed API look like?
Ideally some sort of
draggableoruserInteractivetoggle on theLegendclass. So that you can do something like: