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

Charts with swiper - cursor gets lost #196

Open
malcb opened this issue Feb 5, 2017 · 2 comments
Open

Charts with swiper - cursor gets lost #196

malcb opened this issue Feb 5, 2017 · 2 comments

Comments

@malcb
Copy link

malcb commented Feb 5, 2017

I've used chart to produce a plot of a max rad valve, desired temperature, actual temperature and valve percentage. I've made this a template and wrapped a swiper around it. Swiping the charts seems to confuse the cursor. It is ok on the first chart but subsequent charts it gets lost.

If I make all the cursor groups the same then you can see the cursor moving on the first chart if you swipe an hold halfway in between so you can see both charts. Making groups all different means I can't see any cursor

@malcb
Copy link
Author

malcb commented Feb 10, 2017

Update: I've found that zooming out then in again brings the cursor to the current chart in swiper. Looking at the code I wonder if it is the create for the cursor which defaults to it being x=51%.

Update: Ignore the 51% that is the position of the "cursor" text.

@malcb
Copy link
Author

malcb commented Feb 10, 2017

There is another bug in chart. Turn on cursor and you get the cursor and the values of the plots displayed. Turn off the cursor and it stops working but cursor is still on screen as are the last value. Clicking +/- to cause a plot refresh makes the cursor and values disappear.

I think both of these bugs are due to the plot not being refreshed when the cursor is enable or disabled.

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

No branches or pull requests

1 participant