victory
victory copied to clipboard
Invalid prop `dataComponent` of type `string` supplied to `VictoryPie`, expected a single ReactElement.
Bugs and Questions
Checklist
-
[x] I have read through the FAQ and Guides before asking a question
-
[x] I am using the latest version of Victory (victory-native)
-
[x] I've searched open issues to make sure I'm not opening a duplicate issue
The Problem
Getting invalid prop error, not setting the optional prop. Therefore, using default.
Reproduction
Feature Requests
Checklist
-
[x] I've read through the Docs and Guides to make sure this functionality doesn't already exist
-
[x] I've searched open issues to make sure I'm not opening a duplicate issue
Description
Using FullStory in my app, commenting out the component will load the app, but otherwise, will crash both release and debug version
@my-name-is-nheo I was not able to reproduce this issue. I tested it with the below code and it worked fine. Can you share a code sandbox for the same ? Thanks.
<VictoryPie
x="stageName"
y="count"
data={[{stageName:"abc",count:12,color:"red"},{stageName:"xyz",count:13,color:"blue"}]}
innerRadius={60}
radius={75}
labels={[]}
height={150}
width={150}
style={{data:{fill:({datum})=>datum.color,},}}
containerComponent={<VictoryContainer responsive={false}/>}
/>
This issue is stale because it has been open for 90 days with no activity. If there is no activity in the next 7 days, the issue will be closed.
This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.