Skip to content

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 zhaoyongjie committed Nov 26, 2021
1 parent e668e51 commit 126d409
Showing 1 changed file with 9 additions and 7 deletions.
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 126d409

Please sign in to comment.