Skip to content

Instantly share code, notes, and snippets.

@andreaj8
Created May 19, 2015 19:34
Show Gist options
  • Save andreaj8/382dbd9b9a924c310833 to your computer and use it in GitHub Desktop.
Save andreaj8/382dbd9b9a924c310833 to your computer and use it in GitHub Desktop.
Corrupted SVG
<html
xmlns="http://www.w3.org/1999/xhtml">
<head/>
<body>
<svg
xmlns="http://www.w3.org/2000/svg" width="300" height="300">
<g transform="translate(100,100)">
<g class="slice">
<path fill="#3182bd" d="m-95.10565162951534,-30.901699437494813a100,100 0 0,1 7.044874666267686e-14,-100l0,0z"/>
<text transform="translate(-29.38926261462363,-40.45084971874739)" text-anchor="middle">20</text>
</g>
<g class="slice">
<path fill="#6baed6" d="m6.123031769111886e-15,-100a100,100 0 1,1 -3.8285889215894375e-14,100l0,0z"/>
<text transform="translate(50,1.1102230246251565e-14)" text-anchor="middle">50</text>
</g>
<g class="slice">
<path fill="#9ecae1" d="m-3.8285889215894375e-14,100a100,100 0 0,1 -95.10565162951534,-30.901699437494813l0,0z"/>
<text transform="translate(-40.45084971874739,29.389262614623625)" text-anchor="middle">30</text>
</g>
</g>
</svg>
</body>
<script class="jsdom" src="http://d3js.org/d3.v3.min.js"/>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment