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 #2896

Open
2 tasks done
gc-arch opened this issue Sep 11, 2024 · 0 comments
Open
2 tasks done

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

gc-arch opened this issue Sep 11, 2024 · 0 comments
Labels
Type: Bug 🐛 Oh no! A bug or unintentional behavior

Comments

@gc-arch
Copy link

gc-arch commented Sep 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

Victory version

36.6.10

Code Sandbox link

No response

Bug report

Hello Team,

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

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.
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>

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.

366004059-8a4c3789-7ae9-441a-b668-2bdf9a5fc08b

Steps to reproduce

No response

Expected behavior

When there are 2 same timepoints at start on x-axis, it should show 2 data points on same timepoint.

Actual behavior

It is giving me straight line instead of showing 2 data points on same timepoint.

Environment

- Device:
- OS:
- Node:
- npm:
@gc-arch gc-arch added the Type: Bug 🐛 Oh no! A bug or unintentional behavior label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐛 Oh no! A bug or unintentional behavior
Projects
None yet
Development

No branches or pull requests

1 participant