legend format for pie chart
See original GitHub issueIs there any attribute available to format legend values?
I am trying to show like " id + value " in legends.
For sake of testing I tried like adding a string ‘hello’:
legends={[
{
legendFormat: (d)=>{ d+'hello'}
}
]}
But the legends are getting overlapped on each other.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Add and format a chart legend - Microsoft Support
Right-click the legend, and then click Format Legend. In the Format Legend task pane, pick the options that you want. ... Tip: You...
Read more >How do I move the legend position in a pie chart into ...
You can drag the legend into the pie. In the Format Legend dialog untick the box to "Show the legend without overlapping the...
Read more >How to Edit Legend of a Pie Chart in Excel (3 Easy Methods)
At first, click the cell in the worksheet that you want to edit the legend. · Next, type a new text in the...
Read more >Legend | Chart.js
Position of the legend. Options are: ... When using the 'chartArea' option the legend position is at the moment not configurable, it will...
Read more >How To Add and Remove Legends In Excel Chart? - eduCBA
A Legend is a representation of legend keys or entries on the plotted area of a chart or graph, which are linked to...
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
@plouc How to customize the legends ? The legend should display what is inside label property in data . is that possible ? “legendFormat” property is not working for me. can someone please help me on this
@Milleo, there’s already an issue about this, https://github.com/plouc/nivo/issues/164, but didn’t had the time to look at it.
@fmturati, you can change the font-size using the theme property, like this: