Change dimensions dynamically
Opened this issue · 2 comments
I'm trying to change the dimensions dynamically by calling: vis.call(chart.dimensions(["Survived", "Sex", "Class"])
when the user clicks on a button.
But when the function is called I get an error: Uncaught TypeError: Cannot read property 'hasOwnProperty' of undefined
on line 90 which is within the updateDimensions function in the reusable chart.
I've asked a question on StackOverflow but with no luck.
Can this be implemented so that it is possible filter the dimensions dynamically without creating a new svg object?
I've tried modifying the code but it just moves the problem around.
Hi
I have a similar task , Have you been able to get a solution for creating dynamically?
Thanks
Vinny
I found it tough to do with the way it's architected presently.
The solution I came up with was to calculate a colormap of my positions for each dimension myself, and then I re-initialize the parsets visualization each time I need to change the dimensions, using my color-map to preserve colorings across re-rendering. It's not as nice as making it to accept a dimension change, but I decided the benefit wasn't worth the effort for my project.