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 p=d3.scale.category10(); | |
var r=p.range(); // ["#1f77b4", "#ff7f0e", "#2ca02c", "#d62728", "#9467bd", | |
// "#8c564b", "#e377c2", "#7f7f7f", "#bcbd22", "#17becf"] | |
var s=d3.scale.ordinal().range(r); | |
p.domain(); // [] - empty | |
s.domain(); // [] - empty, see above | |
console.log(p(0)); // "#1f77b4" | |
console.log(p(1)); // "#ff7f0e" | |
console.log(p(2)); // "#2ca02c" | |
console.log(p.domain()); // [0,1,2]; |
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
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="500px" height="700px" viewBox="0 0 500 700" enable-background="new 0 0 500 700" space="preserve" title="Visual.ly Chart " Title="Visual.ly Chart "> | |
<g id="Layer_1"> | |
<g id="_x40_twitter-followers-following-ratio--enoex" onload="({"color-1":"#b17763","color-2":"#336699","color-3":"#003366","color-4":"#989898","color-5":"#ababab","color-6":"#cdcdcd","font_family":"Oswald"})" transform="translate(15.498001098632812,0)" height="98.00959777832031" width="208.00399780273438"><rect class="bgRect" width="208.004" height="98.0096" x="0" y="0" style="fill: #ffffff; opacity: 0; "></rect><text id="twitter-num-following" text-anchor="middle" font-size="100" fill="#b17763" style="font-family: Oswald; font-size: 78.40767822265624px; dominant-baseline: text-before-edge; " |
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> | |
<title>Simple Stack</title> | |
<style> | |
svg { | |
border: solid 1px #ccc; | |
font: 10px sans-serif; | |
shape-rendering: crispEdges; | |
} |
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> | |
<title>Simple Stack</title> | |
<style> | |
svg { | |
border: solid 1px #ccc; | |
font: 10px sans-serif; | |
shape-rendering: crispEdges; | |
} |
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
# ============================================================================== | |
# app.py | |
# A backend example for the proto demo. Will serve up data and static pages | |
# | |
# ============================================================================== | |
import flask | |
import datetime | |
import json | |
import re |
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
classJson = {"classes": [ | |
{"name": "Phil 165", | |
"id": "phil165", | |
"progress": 1.0 }, | |
{"name": "Ed 111", | |
"id":"ed111", | |
"progress": 0.6 }, | |
{"name": "CS 106B", | |
"id":"cs106b", | |
"progress": 0.7 }, |
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
(function() { | |
var _this = this; | |
ZABZO.init = function() { | |
ZABZO.setupZabzo({ | |
svgId: "#zabzo-svg", | |
callback: function(){ | |
ZABZO.updateProgress(50); | |
} | |
}); |
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
[ | |
{ | |
Key: "first_name", | |
Values: { | |
Jessica: 6, | |
Jason: 5, | |
Ashley: 4, | |
John: 4, | |
Katie: 4, | |
Laura: 3, |
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
<html> | |
<head> | |
<style> | |
body { | |
bottom: 0; | |
left: 0; | |
margin: 0; | |
padding: 0; | |
position: absolute; | |
right: 0; |
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
<html> | |
<head> | |
<style> | |
body { | |
min-height: 100%; | |
} | |
#my-div { | |
background: #336699; | |
height: 100%; | |
position: relative; |