Skip to content

Instantly share code, notes, and snippets.

View besquared's full-sized avatar

Josh Ferguson besquared

View GitHub Profile
@besquared
besquared / stacked-area-100pct.json
Created January 30, 2017 02:51 — forked from randyzwitch/stacked-area-100pct.json
Vega Stacked Area 100%
{
"width": 500,
"height": 200,
"padding": "auto",
"data": [
{
"name": "table",
"values": [
{"x": 0, "y": 28, "c":0}, {"x": 0, "y": 55, "c":1},
{"x": 1, "y": 43, "c":0}, {"x": 1, "y": 91, "c":1},
@besquared
besquared / data.csv
Last active January 28, 2017 02:00 — forked from d3noob/data.csv
Discontinuous Path with Isolated Points
date close
2-May-12 65.07
1-May-12 null
30-Apr-12 null
29-Apr-12 60.05
28-Apr-12 null
27-Apr-12 67.00
26-Apr-12 89.70
25-Apr-12 99.00
24-Apr-12 130.28
// Create new XML Object
clothing_xml = new XML();
clothing_xml.ignoreWhite = true;
// Setup load handler which just invokes another function
// which will do the parsing of our XML
clothing_xml.onLoad = function(sucess) {
if (sucess) {
processClothing(clothing_xml);
}
};