reactchartjs / react-chartjs-2

React components for Chart.js, the most popular charting library
https://react-chartjs-2.js.org
MIT License
6.64k stars 2.37k forks source link

HTML Legend Support #1203

Open JayTulshian1 opened 1 year ago

JayTulshian1 commented 1 year ago

Would you like to work on this feature?

What problem are you trying to solve?

Usually if there are more number of tags, and long tags, then they go all over the place after a limit, Couldnt find any support for this in the current version

image

Describe the solution you'd like

A straightforward solution would be to introduce HTML Legend Support. This could be implemented by adding an option to assign a class or ID to the chart. The legend would then be rendered within a designated div or component associated with that class or ID. This approach maintains the existing click behaviors while addressing various use cases, such as overflow issues. Additionally, it provides users with greater control over both the user interface and behavior of the legend component.

Describe alternatives you've considered

No response

Documentation, Adoption, Migration Strategy

No response