Skip to content

Visible percentage in pie chart #205

Answered by simonbrunel
buutqn asked this question in Q&A
Discussion options

You must be logged in to vote

@buutqn I moved your ticket as a discussion since it's neither a bug or feature request.

This plugin doesn't provide any way to know the effective percentage, it's internally computed by the core library. Also, the plugin doesn't expose any geometry info about the element. You could use the chart.getDatasetMeta(datasetIndex) API to retrieve meta data and use meta.data[index].hidden to know about data visibility but you would still need to compute the total yourself.

Here is an example.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by simonbrunel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #205 on December 22, 2020 14:06.