Skip to main content
100%

Something a bit more visually appealing

✓ Published0🌍 Public
VVanBantam
Last edited Mar 3, 2017
Created on Mar 3, 2017

This example draws a static sports field visualization using D3 v3, rendering a green pitch with a white left section, a center circle, and a right-side penalty box as SVG rectangles and circles. It loads point data from a local `dots.txt` file, but the code does not yet bind that data to the SVG elements—instead, all shapes are positioned manually with fixed `attr` values. The visualization uses basic D3 selection and append methods, along with SVG styling, to construct the scene without any interactive or animated behavior.

AI-generated description

Ok here's the deal... use it. Just use it. If you make some really cool changes then you have to let me know. This is the liscence for using this code: if you use it to do something cool you have to let me know so I can see it and learn more and give you your high five.

Otherwise enjoy!

BTW this still isn't getting at what I really want which is have several SVG elements and then positioning using d3. I'm sure one day I'll learn how to do that.

Cheers!

Jean Claude VanBantam

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/5fb38fc64ea7bfcbf61197d94f990723'>fresh block</a>

forked from <a href='http://bl.ocks.org/mscbuck/'>mscbuck</a>'s block: <a href='http://bl.ocks.org/mscbuck/36bf7733d9402cfa641a47ba4cf44bab'>fresh block</a>

mit Licensed

Similar vizzes