Skip to content

Commit

Permalink
Align labels to x extent
Browse files Browse the repository at this point in the history
  • Loading branch information
amoeba committed Jun 17, 2023
1 parent edaef6e commit 667962e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/javascripts/popchart_redesign.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ var popchart = function (selector, url) {
})
.append("text")
.attr("class", "label")
.attr("x", (d) => xScale(d.date))
.attr("x", (d) => xScale(xDomain[1]))
.attr("y", (d) => yScale(d.count))
.attr("dx", 4)
.attr("dy", 4)
Expand Down

0 comments on commit 667962e

Please sign in to comment.