victory icon indicating copy to clipboard operation
victory copied to clipboard

Invalid prop `dataComponent` of type `string` supplied to `VictoryPie`, expected a single ReactElement.

Open my-name-is-nheo opened this issue 2 years ago • 1 comments

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

image

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 avatar Feb 07 '22 18:02 my-name-is-nheo

@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}/>}
      />  

acharyakavita avatar Jan 25 '24 15:01 acharyakavita

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.

github-actions[bot] avatar Apr 25 '24 00:04 github-actions[bot]

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.

github-actions[bot] avatar May 03 '24 00:05 github-actions[bot]