Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VictoryStack not displaying area if there is same time point at start. #2883

Open
2 tasks done
pk-ng2024 opened this issue Jul 11, 2024 · 2 comments · May be fixed by #2898
Open
2 tasks done

VictoryStack not displaying area if there is same time point at start. #2883

pk-ng2024 opened this issue Jul 11, 2024 · 2 comments · May be fixed by #2898
Labels
Type: Question ❔ Asking a question or asking for help

Comments

@pk-ng2024
Copy link

pk-ng2024 commented Jul 11, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

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

Question

Hello Team,
We are using VictoryStack and VictoryArea to plot some area on the graph. It is giving 2 issues for us,

  1. When we are having same time point on x-axis at start then it is not plotting the area instead it gives straight line. Because of that we are unable to plot our area correctly.
  2. When one VictoryArea data having 4 time points and second VictoryArea having another time points then first VictoryArea extended to the first time point of second victoryArea.

Need some help so that we can plot the data correctly.
Please find below data for VictoryStack, This data gives us straight line as it contains same time point at start "2023-11-18T08:10:00.050Z"

<VictoryStack>  
  <VictoryArea    
    data={[
        {x: new Date("2023-11-18T08:10:00.050Z"), y: 0},
        {x: new Date("2023-11-18T08:10:00.050Z"), y: 2},
        {x: new Date("2023-11-18T08:12:00.050Z"), y: 3},
        {x: new Date("2023-11-18T08:13:00.050Z"), y: 4},
        {x: new Date("2023-11-18T08:14:00.050Z"), y: 7},
        {x: new Date("2023-11-18T08:15:00.050Z"), y: 8}
     ]} />
</VictoryStack>
@pk-ng2024 pk-ng2024 added the Type: Question ❔ Asking a question or asking for help label Jul 11, 2024
@r281GQ
Copy link

r281GQ commented Aug 30, 2024

Hey @pk-ng2024 ,

Thanks a lot for the issue. I went and did some digging around the report / request. Could you please elaborate a bit more for the first point.

  1. What is the expected outcome with an example pseudo-code.

  2. What is the current outcome?

Many thanks.

@pk-ng2024
Copy link
Author

Hello @r281GQ ,
Please find attached screenshot for the required one and what we are getting currently. I have already shared the data what we have to use with VictoryStack as we are having stacking logic. But when there are 2 same timepoints at start on x-axis then it is giving me straight line instead of showing 2 data points on same timepoint.

VictoryStackIssue Hope this will help in understanding what is required and what we are getting currently.

@r281GQ r281GQ linked a pull request Sep 12, 2024 that will close this issue
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question ❔ Asking a question or asking for help
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants