PMSI-AlignAlytics / dimple

An object-oriented API for business analytics
Other
2.73k stars 556 forks source link

Error when filtering by legend #248

Open methikas opened 7 years ago

methikas commented 7 years ago

When filtering a bar chart by legend as listed in the dimple.js Advanced examples, the following error is thrown on to the console. Error: attribute x: Expected length, "NaN".

I was able to recreate the error in the given jsfiddle - https://jsfiddle.net/fbpnzy9u/.

Filter the chart by legend and open the dev tools console. Should see error been thrown.

methikas commented 7 years ago

If it helps, removing the redraw animation time reduces the number of time the error occurs.

Eg: chart.redraw(800) -> would throw error 46 times chart.redraw() - > would throw error once.

TheChifer commented 7 years ago

+1 seeing the same error, any fix planned?

jo-me commented 7 years ago

Same effect if you change the data array, e.g. by chart.data.shift(), splice(), etc. Still there in most currently released version of dimple.