Skip to content

Instantly share code, notes, and snippets.

@monkeycycle
Created April 29, 2017 17:43
Show Gist options
  • Save monkeycycle/40b4078016eda7f20f8e3d4c4ab469e5 to your computer and use it in GitHub Desktop.
Save monkeycycle/40b4078016eda7f20f8e3d4c4ab469e5 to your computer and use it in GitHub Desktop.
Chart title
svg.append("text")
.attr("x", 20)
.attr("y", 0 - (margin.top / 2))
.attr("text-anchor", "start")
.style("font-size", "16px")
.text("Charty title");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment