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

[Bug]: No Scroller, when there is alot of legends on the left side and hence the chart overflow #1214

Open Collins87mbathi opened 5 months ago

Collins87mbathi commented 5 months ago

Would you like to work on a fix?

Current and expected behavior

image as shown in the image above the legends are to many such that you can't see the Line Chart .

So I wanted if there is a way there can be a scroller in the container so that one can see the overflow items

Reproduction

N/A

chart.js version

2.9.0

react-chartjs-2 version

2.9.0

Possible solution

the container should be able to automatically add a scroller if there is items overflowing when the legends are on the left side of the chart