[FEATURE] Ability to add label text to individual bubble chart points
See original GitHub issueWhen I’m using bubble charts, I’m often looking to see how something, say a project, compares to other projects. To do this you need to be able to tell what each bubble represents by having a text or label associated with each bubble.
It be reasonable to suggest that this could be done by creating different data sets for each bubble. However that becomes impractical with larger data sets (e.g. > 10) due to the difficulty of matching up the bubble color to the legend color to get the data point name.
It’d also be reasonable to suggest that you could add this information to the tooltip. However, with only one tooltip visible at a time it’s not possible to compare. And if they were, we’d lose the ability to show more detailed information on the tooltip, not to mention the potential clutter of all the tooltips being visible at once (again, larger data sets).
For some context, see my stackoverflow post for a specific example with screenshots. We’re visualizing a number of projects with 3 numeric characteristics, with data sets for different departments. Below the chart we have a table of the projects with additional details. The chart is matched up with the by the ranking of the project.
An ideal solution would be to allow for text to be defined in the data for the bubble chart.
data: [ { x: 10, y: 20, r: 30, label: "#22" } ]
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (3 by maintainers)
https://chartjs-plugin-datalabels.netlify.app/samples/charts/bubble.html
@kurkle this works perfectly thank you 🙏🏻