Adding percentages to labels in amcharts5
Amcharts5 is a very powerful graphics library, however the documentation is really scarce.
If you want to add the percentage of a value in some label you must use the undocumented valuePercentTotal attribute in the desired text label, for example.
legendValueText: "[bold {fill}]{value} {valuePercentTotal.formatNumber('0.00p')}[/]"
Generates a label like this:Hope this helps
 

No hay comentarios:
Publicar un comentario