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

fix: Line not hidden after legend selection #204

Merged
merged 2 commits into from
Sep 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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