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

Commit

Permalink
fix: Line not hidden after legend selection (#204)
Browse files Browse the repository at this point in the history
* fix: Line not hidden after legend selection

* fix: lint issues
  • Loading branch information
KKcorps authored and kristw committed Sep 26, 2019
1 parent 6e988aa commit 484d639
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/superset-ui-legacy-preset-chart-nvd3/src/NVD3Vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -1080,13 +1080,15 @@ function nvd3Vis(element, props) {
.call(chart);

// Display styles for Time Series Annotations
d3.selectAll('.slice_container .nv-timeseries-annotation-layer.showMarkerstrue .nv-point')
.style('stroke-opacity', 1)
.style('fill-opacity', 1);
d3.selectAll('.slice_container .nv-timeseries-annotation-layer.hideLinetrue').style(
'stroke-width',
0,
);
chart.dispatch.on('renderEnd.timeseries-annotation', () => {
d3.selectAll('.slice_container .nv-timeseries-annotation-layer.showMarkerstrue .nv-point')
.style('stroke-opacity', 1)
.style('fill-opacity', 1);
d3.selectAll('.slice_container .nv-timeseries-annotation-layer.hideLinetrue').style(
'stroke-width',
0,
);
});
}
}

Expand Down

0 comments on commit 484d639

Please sign in to comment.