Skip to content
Snippets Groups Projects
Commit fa4517d9 authored by Bucknell, Mary S.'s avatar Bucknell, Mary S.
Browse files

Added a click handler for the median point circle to toggle the visibility of...

Added a click handler for the median point circle to toggle the visibility of the labels. Added a pointer cursor to the median point circle element.
parent 3666f231
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,10 @@ const plotMedianPoints = function (elem, {visible, xscale, yscale, medianStatsDa
})
.attr('cy', function(d) {
return yscale(d.value);
});
})
.on('click', dispatch(function() {
return Actions.showMedianStatsLabel(!showLabel);
}));
if (showLabel) {
container.selectAll('medianPointText').
......
......@@ -76,7 +76,7 @@ export const Actions = {
return {
type: 'SHOW_MEDIAN_STATS_LABEL',
show
}
};
},
resizeTimeseriesPlot(width) {
return {
......
......@@ -69,6 +69,7 @@
}
.median-data-series {
fill: #f96713;
cursor: pointer;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment