D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
curran
Full window
Github gist
Basic Text in SVG
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>Shopping App Prototype</title> <script src="https://d3js.org/d3.v4.min.js"></script> </head> <body> <svg width="500" height="960"></svg> <script> d3.select('svg') .append('text') .style('font-size', '32pt') .style('font-family', 'Sans-Serif') .attr('x', 250) .attr('y', 50) .text('Milk $3'); </script> </body> </html>
https://d3js.org/d3.v4.min.js