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

Sparkline Modifies Input Values in Stacked Bar Charts #191

Open
trescenzi opened this issue Apr 3, 2017 · 0 comments
Open

Sparkline Modifies Input Values in Stacked Bar Charts #191

trescenzi opened this issue Apr 3, 2017 · 0 comments

Comments

@trescenzi
Copy link

When working with a stacked bar chart the input array is modified in place thus resulting in the data that's passed in to fail an equality check after the sparkline has been drawn. You can see that in this jsfiddle.

This is causing an issue when coupled with AngularJS's watchCollection as seen here.

The offending line seems to be this one

This is easily averted by simply passing in a copy of the data by calling slice() on it first so this isn't a particularly huge issue.

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