Inspired by Trulia Trends - but with code and using SVG.
Example data shows concurrent user sessions over time, taken from a development environment.
| //Practically all this code comes from https://github.com/alangrafu/radar-chart-d3 | |
| //I only made some additions and aesthetic adjustments to make the chart look better | |
| //(of course, that is only my point of view) | |
| //Such as a better placement of the titles at each line end, | |
| //adding numbers that reflect what each circular level stands for | |
| //Not placing the last level and slight differences in color | |
| // | |
| //For a bit of extra information check the blog about it: | |
| //http://nbremer.blogspot.nl/2013/09/making-d3-radar-chart-look-bit-better.html |
| [ | |
| {"radius": 3, "fillKey": "pnt", "latitude": 41.89, "longitude": -88.31}, | |
| {"radius": 3, "fillKey": "pnt", "latitude": 40.113, "longitude": -88.261}, | |
| {"radius": 3, "fillKey": "pnt", "latitude": 25.7877, "longitude": -80.2241} | |
| ] |
| import socket, time | |
| # http://www.usa.gov/About/developer-resources/1usagov.shtml | |
| s = socket.socket() | |
| s.connect(('developer.usa.gov', 80)) | |
| s.send('GET /1usagov HTTP/1.0\n\n') | |
| s.setblocking(False) | |
| while True: |
| from concurrent.futures import ProcessPoolExecutor | |
| def myfunc(a, b, c): | |
| return a + b + c | |
| if __name__ == '__main__': | |
| workers = 3 | |
| result = [] |
| package main | |
| import ( | |
| "encoding/base64" | |
| "net/http" | |
| "strings" | |
| ) | |
| type handler func(w http.ResponseWriter, r *http.Request) |
| !function(){ | |
| var Donut3D={}; | |
| function pieTop(d, rx, ry, ir ){ | |
| if(d.endAngle - d.startAngle == 0 ) return "M 0 0"; | |
| var sx = rx*Math.cos(d.startAngle), | |
| sy = ry*Math.sin(d.startAngle), | |
| ex = rx*Math.cos(d.endAngle), | |
| ey = ry*Math.sin(d.endAngle); | |
Inspired by Trulia Trends - but with code and using SVG.
Example data shows concurrent user sessions over time, taken from a development environment.
| diff -r 08a7912b8a09 -r 4c04152dfffe sqlautocode/config.py | |
| --- a/sqlautocode/config.py Mon Sep 24 10:44:30 2012 +0200 | |
| +++ b/sqlautocode/config.py Wed Apr 17 13:26:23 2013 +0300 | |
| @@ -140,7 +140,7 @@ | |
| engine = sqlalchemy.create_engine(url) | |
| test = engine.connect() | |
| test.close() | |
| - except sqlalchemy.exceptions.SQLAlchemyError, ex: | |
| + except sqlalchemy.exc.SQLAlchemyError, ex: | |
| parser.error('Could not connect to "%s": %s' % (url, ex)) |
| #!/usr/local/bin/python3 | |
| import sys, os | |
| from concurrent.futures import ProcessPoolExecutor | |
| def osjob(cmd): | |
| print("running `{}`".format(cmd)) | |
| os.system(cmd) | |
| print("finished `{}`".format(cmd)) |
This is the map of Nielen Designated Marketing Areas using D3.js. Hover over for data related to each area.
See map here
###Credits