victory icon indicating copy to clipboard operation
victory copied to clipboard

Victory position is undefined

Open Gautamshah1 opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Victory version

36.6.8

Code Sandbox link

No response

Bug report

There is position error

Steps to reproduce

<View style={styles.chartContainer}>
        //   <View
        //     style={{
        //       height: 215,
        //       marginTop: 45,
        //       justifyContent: 'space-between',
        //     }}>
        //     {yAxisLabels.map((label, index) => (
        //       <View style={{width: 40, height: 215 / 5}}>
        //         <Text key={index} style={styles.yAxisText}>
        //           {label}
        //         </Text>
        //       </View>
        //     ))}
        //   </View>
        //   {oxygenData && (
        //     <ScrollView
        //       horizontal
        //       showsHorizontalScrollIndicator={false}
        //       showsVerticalScrollIndicator={false}>
        //       <View style={{width: oxygenData.length * 50, height: 300}}>
        //         {/* <VictoryChart
        //           theme={VictoryTheme.material}
        //           width={oxygenData.length * 50}
        //           height={300}
        //           padding={{top: 20, bottom: 40, left: 0, right: 0}}
        //           domain={{y: [0, 100]}}
        //           domainPadding={{x: 25, y: 25}}>
        //           <VictoryScatter
        //             style={{
        //               data: {
        //                 fill: ({datum}) => `url(#gradient)`,
        //               },
        //             }}
        //             data={oxygenData}
        //             size={5}
        //           />
        //           {gradientFill()}
        //         </VictoryChart> */}
        //         <VictoryScatter
        //             style={{
        //               data: {
        //                 fill: ({datum}) => `url(#gradient)`,
        //               },
        //             }}
        //             data={oxygenData}
        //             size={5}
        //           />
        //       </View>
        //     </ScrollView>
        //   )}
        // </View>

Expected behavior

No response

Actual behavior

No response

Environment

- Device: realme 
- OS:android
- Node:20
- npm:

Gautamshah1 avatar May 15 '24 03:05 Gautamshah1

Screenshot 2024-05-05 195021 this is the error

Gautamshah1 avatar May 15 '24 03:05 Gautamshah1

Hi there! It looks like your issue requires a minimal reproducible example, but it is invalid or absent. Please prepare such an example and share it with us.

The best way to get attention to your issue is to provide a clean and easy way for a developer to reproduce the issue on their own machine. Please do not provide your entire project, or a project with more code than is necessary to reproduce the issue.

A side benefit of going through the process of narrowing down the minimal amount of code needed to reproduce the issue is that you may get lucky and discover that the bug is due to a mistake in your application code that you can quickly fix on your own.

Resources

Common concerns

"I didn't have time to create one"

That's understandable, it can take some time to prepare. We ask that you hold off on filing an issue until you are able to fully complete the required fields in the issue template.

"You can reproduce it by yourself by creating a project and following these steps"

This is useful knowledge, but it's still valuable to have the resulting project that is produced from running the steps, where you have verified you can reproduce the issue.

victory-ci avatar May 15 '24 14:05 victory-ci

the upper was the code i used to replicate graph

Gautamshah1 avatar May 17 '24 05:05 Gautamshah1

It's not possible to use the above code since we do not have access to things like oxygenData and gradientfill. However, pasting that code into a sandbox without that reveals no error.

ref: https://codesandbox.io/p/sandbox/victory-starter-forked-d27wfj

carbonrobot avatar May 17 '24 12:05 carbonrobot

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 Aug 16 '24 00:08 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 Aug 23 '24 00:08 github-actions[bot]