Skip to content

Commit

Permalink
Lint Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyurx11 committed Oct 22, 2024
1 parent f00914c commit 0bf6047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/js/components/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 0bf6047

Please sign in to comment.