Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

fix(legacy-preset-chart-nvd3): redraw markers after legend interaction #6

Merged
merged 2 commits into from
Mar 4, 2019

Conversation

betodealmeida
Copy link
Contributor

🐛 Bug Fix

In the NVD3Vis, markers are drawn only the first time the chart is rendered. Because of this, if you re-toggle a line interacting with the legend it will be redrawn without markers.

I fixed by adding an event listener on changes to the chart. Unfortunately, nvd3 calls the dispatch before the line is drawn, so I had to add a small delay (10ms) in order for it to work. I couldn't find a better way of doing this, and since the viz is being deprecated I didn't want to spend too much time on this.

@betodealmeida betodealmeida added the #bug Something isn't working label Mar 4, 2019
@kristw kristw merged commit b257c32 into master Mar 4, 2019
@delete-merged-branch delete-merged-branch bot deleted the VIZ-218 branch March 4, 2019 21:21
nytai referenced this pull request in preset-io/superset-ui-plugins Apr 27, 2020
#6)

* fix(legacy-preset-chart-nvd3): redraw markers after legend interaction

* fix: lint
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
#bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants