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

how to properly refresh crossfilter dataset and render d3 piechart #13

Open
sallespro opened this issue Jul 29, 2014 · 8 comments
Open

Comments

@sallespro
Copy link

i would like refresh crossfilter dataset and render the chart once in a while.

the crossfilter is initialized and after some new data arrives, i tried to

          ndx.remove();
          ndx = crossfilter(new_dataset);

plus redefine dimensions & groups...

and then

dc.renderAll(1);

but it doesn't seem to reset crossfilter, but i can see the chart redraw.

what's the proper way to do it ?

@TomNeyland
Copy link
Owner

@sallespro I am having a bit of trouble replicating this, could you possible put together a jsfiddle or codepen?

@sallespro
Copy link
Author

hey @TomNeyland, yes, i'll do so.

AFAIK the directive would be hindering the rendering ( drawing ) with the new dataset, despite crossfilter is in fact updated.

i thought i should do it without the angular directive instead, or does it occur to you a way with the directive ?

@deebuls
Copy link

deebuls commented Feb 3, 2015

I wanted to do the same issue .
crossfilter is initialized with new data as new data comes.
The corssfilter and the dimension are updated in $scope.
But the charts are not redrawn with the new crossfilter values

How to explicitly redraw the charts

@TomNeyland
Copy link
Owner

I am going look into this the next time I have a chance to go through knocking out issues.

@deebuls @sallespro would you be able to put together at JSFiddle that demonstrates the problem? It would aid me in understanding and resolving this quicker.

@kenda
Copy link

kenda commented May 26, 2015

I struggled here too. Any news on this?

@deebuls @sallespro Have you found any appropriate workaround in the meantime?

@toddlamothe
Copy link

Was a JSFiddle submitted for this or was the issue resolved? Also running into trouble refreshing pie charts after updating crossfilter values.

Happy to put together a Fiddle if needed.

@TomNeyland
Copy link
Owner

@toddlamothe I'd love if you could put a fiddle together.

I am traveling until 9/18 so my ability to look into this before then is limited, but having a fiddle will help me greatly when I get back.

@toddlamothe
Copy link

having trouble with the jsfiddle. code is there but the pie chart won't render:

https://jsfiddle.net/lamothe/z1c07pha/13/

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

5 participants