Comparing Andre Drummond's performance to the rest of the league
This example was created to help me figure out where to hold the location of the Data Science Southeast Michigan meetup.
Please click on Open in new window to view entire visual.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = []; | |
var width = 700; | |
var height = 500; | |
d3.csv("output.csv", function(csv_data) { | |
// make the data into an x y graph | |
var xy_data = [{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# django | |
from django.forms import widgets | |
# 3rd party apps | |
from rest_framework import serializers, pagination | |
from base.models import Document, Sentence | |
class DocumentSerializer(serializers.Serializer): |
This example demonstrates how to add visible and draggable handles to D3’s d3.svg.brush component, rather than that relying on the invisible boundary of the brush extent. The handle sizes here are exaggerated for demonstration purposes!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.x_axis path,.x_axis line,.y_axis path,.y_axis line{ | |
fill:none; | |
stroke:black; | |
shape-rendering:crispEdges | |
} | |
.x_axis text,.y_axis text{ | |
font-family:georgia; | |
font-size:13px | |
} | |
.holder{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script> | |
<script type="text/javascript" src="https://raw.github.com/ahwolf/d3_tutorial/master/code/js/lib/jquery-1.8.0.min.js"></script> | |
<script type="text/javascript" src="https://raw.github.com/ahwolf/d3_tutorial/master/code/js/lib/underscore-1.3.3-min.js"></script> | |
<style type="text/css"> | |
svg{display:block;}p.instructions{font-style:italic}#animation{margin-top:10px;text-align:center;width:400px}#animation .button{color:black;font-size:14px;font-weight:bold;width:150px;border-width:1px;padding:10px;margin:2px}.snowflake.even{fill:#42cae9}.snowflake.odd{fill:#9ee4f3}#rss_chart{display:none} |