React-native-chart-kit: Legend in Pie Chart

Created on 7 Apr 2019  路  6Comments  路  Source: indiespirit/react-native-chart-kit

It is possible to remove legend in Pie Chart?

Most helpful comment

Is not the way, but almost do it:
width={width} paddingLeft={Data.width / 4} hasLegend={false}

All 6 comments

I don't think it is right now, but it should be an easy PR

I also needed to hide it while using the pie chart. I did it by disabling the code in library pie-chart.js

You can now use hasLegend={false} to do that

hasLegend={false} doesn't re-center the pie-chart, so now it looks silly and lopsided for me. I can hack it with margin but it's not really crossplatform / crossphonemodel as I won't know by how many pixels exactly to translate it

hasLegend={false} doesn't re-center the pie-chart, so now it looks silly and lopsided for me. I can hack it with margin but it's not really crossplatform / crossphonemodel as I won't know by how many pixels exactly to translate it

what is the right way to center a the pie chart with no legend?

Is not the way, but almost do it:
width={width} paddingLeft={Data.width / 4} hasLegend={false}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

uttampawar picture uttampawar  路  3Comments

trungtin2202 picture trungtin2202  路  3Comments

Danjavia picture Danjavia  路  5Comments

mcama picture mcama  路  5Comments

marinimau picture marinimau  路  6Comments