Option to disable VictoryPie label
I'm using the new VictoryLegend and I was wondering if there is a proper way to disable the rendering of labels via the labelComponent on VictoryPie. Using labelComponent={null} causes a fatal error
@peterhadlaw try labels={() => null} instead
It's not working in case of <VictoryLine>
@ShaikhKabeer I guess you can always style it, right? style={{ labels: { display: "none" } }}
@ShaikhKabeer I was having trouble with the
Well, I found multiple solutions to this:
Solution 1:
labelComponent = { <span></span> }
Solution 2:
style={{ labels: { display: "none" } }}
Still a hack and would like a better solution like the following:
<VictoryLabel active={false}/>