diff --git a/server/src/js/components/chart.js b/server/src/js/components/chart.js index 2af3757cd..04c0df3b6 100644 --- a/server/src/js/components/chart.js +++ b/server/src/js/components/chart.js @@ -795,7 +795,7 @@ function LineChart (containerId, stationId, data, options = {}) { const textHeight = Math.round(text.node().getBBox().height) path.attr('d', `m-0.5,-0.5 l${textWidth + 20},0 l0,${19 + textHeight} l-${((textWidth + 20) / 2) - 7.5},0 l-7.5,7.5 l-7.5,-7.5 l-${((textWidth + 20) / 2) - 7.5},0 l0,-${19 + textHeight} l0,0`) label.attr('transform', `translate(${Math.round(width / 2 - ((textWidth + 20) / 2))}, -${29 + textHeight})`) - + // Remove button const remove = thresholdContainer.append('a') .attr('role', 'button')