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.
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.