Align legend labels to right/end
See original GitHub issueHey, I’m working with doughnut charts, with a legend in the right section of the canvas (position: ‘right’). I’m trying to achieve something like this:
I’m trying to align the legend labels (the text with the % value, not the box) to the right, but i can’t make it.
I tried position: 'right', align: 'right',
in the legend configuration, but the text does not align to the ‘right’.
Is this a bug or am i doing something wrong?
Chart.js version ^3.0.0-beta.14
Thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Aligning the keys legend and labels to the right side of the ...
I know the legend.text.align argument of the theme() function but it controls only the distance between a keys and its the corresponding label....
Read more >FAQ-829 How can I right-align legend text or ... - OriginLab
To right-align legend text, select the legend object, then: Click the Alignment button Button Align Left.png on the Format toolbar and choose ...
Read more >How To: Change the alignment of a legend title in an ArcGIS ...
Change the alignment of the legend title by expanding the Position section in the Format Legend. The title is now aligned to the...
Read more >HTML | <legend> align Attribute - GeeksforGeeks
The <legend> align attribute in HTML is used to specify the alignment of the caption in a <fieldset> element. The left and right...
Read more >Aligning parts of the legend text on the right side · Issue #361
You can align the value label by setting the following to the legend: chart.legend = new am4charts.Legend(); chart.legend.position = "right"; ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ok, that one is a bug in types.
Thanks for the fast response and PR 🚀 You guys are amazing!