dc-js / dc.leaflet.js

DC charts using Leaflet maps
Apache License 2.0
52 stars 24 forks source link

Reset all #42

Closed Tablel352 closed 3 years ago

Tablel352 commented 3 years ago

When executing a "reset all"..

<a href="javascript:dc.renderAll(); dc.redrawAll()">Reset all</a>

.. the layer of circles on a bubbleChart get stacked on top of each other.

It seems like the old layer first has to be removed.

gordonwoodhull commented 3 years ago

Normally you would do

dc.filterAll(); dc.redrawAll();

I.e. there is no need to re-render to implement "reset all". If you really need to re-render for some reason, you are right that it doesn't clear the chart - that's issue #15.