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

Unable to sync the cursor in multi-series in stock chart #1587

Closed
workingbuddy10 opened this issue Jun 25, 2024 · 3 comments
Closed

Unable to sync the cursor in multi-series in stock chart #1587

workingbuddy10 opened this issue Jun 25, 2024 · 3 comments
Labels

Comments

@workingbuddy10
Copy link

My Date axis is not synced properly, I even tried adding mingridistance to 0.Then too it didn't worked.

image

See this unusual behavior, if I am hovering on the same candle if I hover a little bit right it goes to 24th else it stays on 23rd.

25.06.2024_05.36.54_REC.mp4

I want If I am hovering on the 24th June candle then the below series cursor should point out to the 24th June only.

codepen to replicate the issue ( in comparison series tab Add APPLE ) : https://codepen.io/Ansh-m-the-reactor/pen/YzbvxbV?editors=1010

Note: There can be irregularity in both the chart data

@workingbuddy10
Copy link
Author

Closing this issue, It got fixed when I applied filtration to the series data and used GaplessDateAxis.

@workingbuddy10
Copy link
Author

@martynasma
I don't want user to scroll or pan in the left side ( start < 0).
I added events in the panel but even if I click then too event gets fire. I don't want that. If I click it should react.

      fundamentalPanel.events.on("wheel", () => {
      start = fundamentalDateAxis.get("start");
      console.log(start);
      
      if (start <= 0) {
       console.log("Scroll on main chart to load more data")
        fundamentalDateAxis.set("maxDeviation", 0);
      }
    })

    fundamentalPanel.events.on("panended", () => {
      start = fundamentalDateAxis.get("start");
      console.log(start);
      
      if (start <= 0) {
       console.log("Scroll on main chart to load more data")
        fundamentalDateAxis.set("maxDeviation", 0);
      }
    })

I tried adding the event on series but it didn't worked.

codepen : https://codepen.io/Ansh-m-the-reactor/pen/YzbvxbV?editors=1111

@workingbuddy10 workingbuddy10 reopened this Jul 2, 2024
@martynasma
Copy link
Collaborator

That seems like a totally different issue. Let's keep this place clutter-free, both for our own sake and the other's. If you have other questions, not directly related to original topic, please post a separate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants