D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
katsumitakano
Full window
Github gist
円弧のサンプル
<!doctype html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> body{ width: 960px; height: 500px; } </style> </head> <body> <svg width="960" height="500"> <g transform="translate(10,10)"> <path stroke="black" fill="none" d=" M 0,0 A 200,200 0 0 0 200,200 "></path> <!-- 以下は付加情報 --> <circle cx="0" cy="0" r="5" fill="black"></circle> <text x="0" y="0" dx="10" dy="10" fill="red">M0, 0</text> <circle cx="200" cy="0" r="10" fill="blue"></circle> <circle cx="200" cy="200" r="5" fill="black"></circle> <text x="200" y="200" dx="10" dy="10" fill="red">200, 200</text> <line x1="0" y1="0" x2="200" y2="0" stroke="black" stroke-dasharray="5 5" opacity="0.2"></line> <line x1="200" y1="0" x2="200" y2="200" stroke="black" stroke-dasharray="5 5" opacity="0.2"> </line> </g> </svg> </body> </html>