Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Legend option to change the layout of items in the legend

Open kbdrand opened this issue 9 years ago • 2 comments

I would like to see an option that changes the flow of the items in the Legend based on chart type. In a pie chart, the legend items are displayed from top to bottom. If you have a lot of items (which happens a lot in pie charts) the legend items can scroll down the page. There should be an option that changes the rendering of the legend items so that they are rendered across first, then down rather than just top to bottom.

kbdrand avatar Apr 19 '17 11:04 kbdrand

This has been requested a couple of times before. I think the best solution is to create an HTML legend rather than using one drawn on the canvas

etimberg avatar Apr 19 '17 21:04 etimberg

Closing per my comment above. I have not heard this being requested since this original post, so HTML is the way to do this

etimberg avatar Oct 10 '20 23:10 etimberg