D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
gplssm
Full window
Github gist
D3.js map with normal label positioning
This map shows European countries including their ISO 3 label.
<!DOCTYPE html> <html> <meta charset="utf-8" \> <style> path { stroke: white; stroke-width: 1.5px; fill: #C4C4C4; } </style> <body> <script src="https://d3js.org/d3.v4.min.js"></script> <script src="map.js"></script> </body> </html>
https://d3js.org/d3.v4.min.js