Can anyone guide me on how to integrate Google fonts into a d3 text element? For example:
g.append('text')
.attr('x', width / 2)
.attr('y', height / 3)
.text('roboto')
.style("font-family", "roboto")
.style("font-size", "80px")
.attr("fill", "grey");
This question is unrelated to the one below, which focuses on using a custom type face.
Learn more about integrating Google fonts with d3.js and SVG here!