-
Notifications
You must be signed in to change notification settings - Fork 55
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
horizontal bar chart drag x axis #24
Comments
Hi @carlgrayau, I started fiddling around on a new branch, mainly because I wanted to get rid of the security vulnerabilities due to the old dependencies. I guess the horizontal bar charts should be working now, I will try to solve the issue with the stacked ones while I'm at it before I merge into master though You can check out the working brach here: |
@chrispahm thanks for the fix! works great! Re Drag from 0 - I saw it working on your jsfiddle, but doesn't pick it up for me at 0. |
Alright I just merged the changes into master, would be nice if you could have a look once again! So about the drag from 0: Best, |
Thanks Christoph, Yep master is working fine! On the 0 problem, can see the difficulties from ux perspective, it would be cumbersome to have to start from a figure other than 0 for many charts (to avoid your user getting stuck). I guess they could refresh if they do so, but also this wouldn't be great. |
Ok thanks for confirming! Cheers |
Hey Chris, Re this, I found an option that helped me for 0 values, it was minBarLength which you can add. Don't know why the default wasn't working per a lot of examples, but this is a good fix. Cheers |
That's good to know! If you want to, it would be nice to have a jsFiddle, Plunker, ..., showing the difference, then I could make a reference in the readme for anyone interested in using this with bar charts. |
Just as a reference, I made a fiddle showcasing how to use See #52 for discussion |
Hi,
Thanks for your plugin, I found that with vertical bar chart the dragging works fine. However when I use the horizontal bar chart, it drags but along the Y axis, i.e. moving the mouse up and down, will move the horizontal bar left and right. I tried the DragX/Y options but did not get it to work, also putting DragData within the X/Y axis.
Also a smaller issue, was when I dragged to zero, I could not drag it out of zero, so I had to set the minimum to be 1 instead of 0.
Any fixes appreciated.
Thanks
The text was updated successfully, but these errors were encountered: