-
Notifications
You must be signed in to change notification settings - Fork 16
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
xValue and yValue incorrectly computed for Bar chart #65
Comments
Hi @eltonjude Thank you for sharing! How about checking |
Related to #54. |
I need to use shape.units = 'values' for bar chart and I feel it needs a I will include these in a PR. Thanks On Fri, Oct 21, 2016 at 9:23 AM, Elton Pereira [email protected] wrote:
|
It works with chart.inverted. Thanks! On Fri, Oct 21, 2016 at 6:21 AM, Paweł Fus [email protected] wrote:
|
Yes, probably all the values should be swapped for an inverted chart. Annotations were implemented as plugin for Highstock, which doesn't have inverted option :) |
Consider a Column chart and I want to draw a circle for [Europe, 0]. Works as expected - http://jsfiddle.net/a5h870wt/2/
But for a Bar chart, the circle is not at the correct place: http://jsfiddle.net/a5h870wt/3/
The solution is to swap the computed x and y if they were calculated from xValue and yValue after this line: https://github.com/blacklabel/annotations/blob/master/js/annotations.js#L602
Here's how it looks: http://jsfiddle.net/a5h870wt/4/
I have a commit here with the fix: eltonjude@d453f71
If you could suggest other properties that would have similar issue, I can include fixes for them in a PR with the above fix.
Thanks
The text was updated successfully, but these errors were encountered: