Visible percentage in pie chart #205
-
Beta Was this translation helpful? Give feedback.
Answered by
simonbrunel
Dec 22, 2020
Replies: 1 comment
-
@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 Here is an example. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
simonbrunel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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 usemeta.data[index].hidden
to know about data visibility but you would still need to compute the total yourself.Here is an example.