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

Change dimensions dynamically #12

Open
peterssonjonas opened this issue Mar 31, 2015 · 2 comments
Open

Change dimensions dynamically #12

peterssonjonas opened this issue Mar 31, 2015 · 2 comments

Comments

@peterssonjonas
Copy link

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.

@Vinayhb
Copy link

Vinayhb commented Jul 3, 2017

Hi
I have a similar task , Have you been able to get a solution for creating dynamically?

Thanks
Vinny

@naim
Copy link

naim commented Jul 3, 2017

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.

Repository owner deleted a comment from Vinayhb Feb 3, 2018
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

3 participants