Nivo: HOWTO: Percentage values in Pie?

Created on 15 Apr 2020  路  2Comments  路  Source: plouc/nivo

Hello.

How to add percentage symbol to data values in Pie?

image

btw, this answer doesn't work -> https://github.com/plouc/nivo/issues/468#issuecomment-469522846
:((

Most helpful comment

Seems like #468 is for bar charts.

Try adding a prop to your pie component

sliceLabel={(item) => `${item.value}%`}

All 2 comments

Seems like #468 is for bar charts.

Try adding a prop to your pie component

sliceLabel={(item) => `${item.value}%`}

@baapham Yeyyy, thank you!!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

barnapisti1994 picture barnapisti1994  路  3Comments

KENNYSOFT picture KENNYSOFT  路  3Comments

dubzzz picture dubzzz  路  3Comments

gcloeval picture gcloeval  路  3Comments

PattieC4ke picture PattieC4ke  路  3Comments