Request: show each item count in legend
See original GitHub issueHello, nice chart!
What about showing the total count for each section in the legend? Or even in a tooltip while hovering each slice?
My service is returning an array of objects, each contains it’s value… so let’s say there are 3 sections, first with value = 3, second = 3, third = 6, with this formula I’ve converted these values into percentages:
series_data.map(s => ({
"label": s.label,
"value": s.value / data.total * 100,
color: s.color
}))
Total is the sum of all the values. Yeah I know…it’s easy but I think that would be nice to have it implemented as an option, in order to avoid this conversion every time. 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Display item count in legend using ArcGIS Online web maps
We would like to be able to display an item count in the legend while using ArcGIS Online Web maps. If you change...
Read more >Percentage of total for each legend item
I am using a line visualization with multiple legend values. I want to show legends as a percentage of the total per month....
Read more >Display feature count in legend by map extent using mask and ...
I would like to have the count of requests by district in order to display it in my legend. Unfortunately, this returns the...
Read more >Show feature count in composer legend · Issue #15545 - GitHub
A new tool button which can switch on/off feature counts in composer legend for selected vector layer was added in Composer > (Legend)...
Read more >Microsoft Chart Controls Legend Item Ordering - Stack Overflow
Or you can create some collection first and fill it by referencing existing legend items in desired order, then clearing LegendItems and inserting...
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
I also want to control the legends Maybe add slot for every items of legend? Follow the concept code
Sorry for the misaligned text, it’s done with an image editor.
I would: