Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Reset all #42

Closed
Tablel352 opened this issue Jun 30, 2021 · 1 comment
Closed

Reset all #42

Tablel352 opened this issue Jun 30, 2021 · 1 comment

Comments

@Tablel352
Copy link

Tablel352 commented Jun 30, 2021

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
Copy link

gordonwoodhull commented Jun 30, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants