You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 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.
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.
The text was updated successfully, but these errors were encountered: