{{ figure.spec }}
- {% assign imgurl = figure.spec | remove:".vl.json" | remove:".vg.json" | append: ".png" | prepend: "img/" %} - -{{ figure.caption }}
+ {% assign name = figure.spec | remove:".vl.json" | remove:".vg.json" %} {% assign imgurl = name | append: ".png" | prepend: "img/" %} + +{{ figure.caption }}
+ + {% if figure.spec contains ".vl."%} + (Vega-Lite demo) + {% else %} + (Vega demo) + {% endif %} + + + {% if figure.note %}Note: {{figure.note}}
{% endif %} diff --git a/node_modules/fs/README.md b/node_modules/fs/README.md new file mode 100644 index 0000000..5e9a74c --- /dev/null +++ b/node_modules/fs/README.md @@ -0,0 +1,9 @@ +# Security holding package + +This package name is not currently in use, but was formerly occupied +by another package. To avoid malicious use, npm is hanging on to the +package name, but loosely, and we'll probably give it to you if you +want it. + +You may adopt this package by contacting support@npmjs.com and +requesting the name. diff --git a/node_modules/fs/package.json b/node_modules/fs/package.json new file mode 100644 index 0000000..675221b --- /dev/null +++ b/node_modules/fs/package.json @@ -0,0 +1,69 @@ +{ + "_args": [ + [ + "fs", + "/mnt/c/Users/danyelf/git/makingdatavisual.github.io" + ] + ], + "_from": "fs@latest", + "_id": "fs@0.0.1-security", + "_inCache": true, + "_installable": true, + "_location": "/fs", + "_nodeVersion": "4.1.2", + "_npmUser": { + "email": "ernie@npmjs.com", + "name": "ehsalazar" + }, + "_npmVersion": "3.10.5", + "_phantomChildren": {}, + "_requested": { + "name": "fs", + "raw": "fs", + "rawSpec": "", + "scope": null, + "spec": "latest", + "type": "tag" + }, + "_requiredBy": [ + "#USER" + ], + "_resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", + "_shasum": "8a7bd37186b6dddf3813f23858b57ecaaf5e41d4", + "_shrinkwrap": null, + "_spec": "fs", + "_where": "/mnt/c/Users/danyelf/git/makingdatavisual.github.io", + "author": "", + "bugs": { + "url": "https://github.com/npm/security-holder/issues" + }, + "dependencies": {}, + "description": "This package name is not currently in use, but was formerly occupied by another package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.", + "devDependencies": {}, + "directories": {}, + "dist": { + "shasum": "8a7bd37186b6dddf3813f23858b57ecaaf5e41d4", + "tarball": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz" + }, + "homepage": "https://github.com/npm/security-holder#readme", + "keywords": [], + "license": "ISC", + "main": "index.js", + "maintainers": [ + { + "name": "ehsalazar", + "email": "ernie@npmjs.com" + } + ], + "name": "fs", + "optionalDependencies": {}, + "readme": "ERROR: No README data found!", + "repository": { + "type": "git", + "url": "git+https://github.com/npm/security-holder.git" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "version": "0.0.1-security" +} diff --git a/scripts/siteprep.js b/scripts/siteprep.js new file mode 100644 index 0000000..0cbe1eb --- /dev/null +++ b/scripts/siteprep.js @@ -0,0 +1,48 @@ +#!/usr/bin/env node +'use strict'; + +/** +* This script creates pages for all examples for the website. +*/ + +const fs = require('fs'); +const examples = require('../_data/figures.json'); +//const { execSync } = require('child_process'); +// const svg2png = require('svg2png-many'); + +function createPage(example) { + return (`--- +layout: page +menu: examples +${example.caption ? `description: ${example.caption}`: ''} +title: ${example.title} +permalink: /examples/${example.name}.html +image: /img/${example.name}.png +number: ${example.number} +spec: ${example.spec} +--- +${example.caption || ''} +`); +} + +//${example.caption || ''} +// {% include example.html spec='${example.spec}'%} +//`); +//} + + +//const fileMap = {}; + + +for (const group of examples) { + for (const child of group.children ) { + const example = Object.assign({}, child); + child.name = child.spec.split(".")[0]; + console.log( child.name ); + fs.writeFileSync(`examples/${child.name}.md`, createPage(child)); +// fileMap[`examples/compiled/${name}.svg`] = `examples/compiled/${name}.png`; + } +} + +// svg2png.svg2PngFiles(fileMap) + diff --git a/spec/5_10_density-cat.vl.json b/spec/5_10_density-cat.vl.json index 6738a8e..2b30a6d 100644 --- a/spec/5_10_density-cat.vl.json +++ b/spec/5_10_density-cat.vl.json @@ -1,6 +1,6 @@ { "$schema": "https://vega.github.io/schema/vega-lite/v2.json", - "data": { "url": "data/cars.csv" }, + "data": { "url": "/data/cars.csv" }, "mark": "rect", "encoding": { "x": {"field": "make", "type": "nominal", "axis": {"title": "Make"}}, diff --git a/spec/5_11_density-cont.vl.json b/spec/5_11_density-cont.vl.json index 242dcc7..7d25fa5 100644 --- a/spec/5_11_density-cont.vl.json +++ b/spec/5_11_density-cont.vl.json @@ -1,7 +1,7 @@ { "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config": {"background":"#ffffff"}, - "data": { "url": "data/cars.csv" }, + "data": { "url": "/data/cars.csv" }, "mark": "rect", "encoding": { "y": {"field": "curb-weight", "bin": true, "type": "quantitative", "axis": {"title": "Curb Weight"}}, diff --git a/spec/5_12_bar-chart.vl.json b/spec/5_12_bar-chart.vl.json index b1dd663..d33ee9e 100644 --- a/spec/5_12_bar-chart.vl.json +++ b/spec/5_12_bar-chart.vl.json @@ -4,7 +4,7 @@ "background": "#ffffff" }, "data": { - "url": "data/cars.csv" + "url": "/data/cars.csv" }, "mark": "bar", "encoding": { diff --git a/spec/5_13_clustered-bar-chart.vl.json b/spec/5_13_clustered-bar-chart.vl.json index 725a539..43a75c4 100644 --- a/spec/5_13_clustered-bar-chart.vl.json +++ b/spec/5_13_clustered-bar-chart.vl.json @@ -4,7 +4,7 @@ "background": "#ffffff" }, "data": { - "url": "data/cars.csv" + "url": "/data/cars.csv" }, "facet": { "row": { diff --git a/spec/5_13a_clustered-bar-chart.vg.json b/spec/5_13a_clustered-bar-chart.vg.json index e14cecb..e0432e4 100644 --- a/spec/5_13a_clustered-bar-chart.vg.json +++ b/spec/5_13a_clustered-bar-chart.vg.json @@ -6,7 +6,7 @@ "data": [ { "name": "source_0", - "url": "data/cars.csv", + "url": "/data/cars.csv", "format": { "type": "csv", "parse": { diff --git a/spec/5_14_justone_pie.vg.json b/spec/5_14_justone_pie.vg.json index ac08a4b..4deecd4 100644 --- a/spec/5_14_justone_pie.vg.json +++ b/spec/5_14_justone_pie.vg.json @@ -7,7 +7,7 @@ "data": [ { "name": "table", - "url": "data/complaints.csv", + "url": "/data/complaints.csv", "format": {"type": "csv","parse": "auto"}, "transform": [ { diff --git a/spec/5_15_heatmap.vl.json b/spec/5_15_heatmap.vl.json index c30fef4..a0227f7 100644 --- a/spec/5_15_heatmap.vl.json +++ b/spec/5_15_heatmap.vl.json @@ -8,7 +8,7 @@ } }, "width": 600, - "data": {"url": "data/complaints.csv", "format": {"type": "csv"}}, + "data": {"url": "/data/complaints.csv", "format": {"type": "csv"}}, "mark": "rect", "encoding": { "y": {"field": "Product", "type": "nominal"}, diff --git a/spec/5_16_scatterplot.vl.json b/spec/5_16_scatterplot.vl.json index c6aa092..f5f0468 100644 --- a/spec/5_16_scatterplot.vl.json +++ b/spec/5_16_scatterplot.vl.json @@ -1,7 +1,7 @@ { "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config": {"background":"#ffffff"}, - "data": { "url": "data/cars.csv" }, + "data": { "url": "/data/cars.csv" }, "mark": "point", "encoding": { "color": {"field": "body-style", "type": "nominal", "legend": {"title": "Body Style"}}, diff --git a/spec/5_17_line.vl.json b/spec/5_17_line.vl.json index c50158d..fffd244 100644 --- a/spec/5_17_line.vl.json +++ b/spec/5_17_line.vl.json @@ -2,7 +2,7 @@ "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config": {"background":"#ffffff"}, "width": 600, - "data": {"url": "data/complaints.csv", "format": {"type": "csv"}}, + "data": {"url": "/data/complaints.csv", "format": {"type": "csv"}}, "mark": "line", "encoding": { "x": {"timeUnit": "yearmonth", "field": "Date received", "type": "temporal", "axis":{"title": "Date Received"}}, diff --git a/spec/5_18_area-stacked.vl.json b/spec/5_18_area-stacked.vl.json index 6a6fdd3..e7b95f7 100644 --- a/spec/5_18_area-stacked.vl.json +++ b/spec/5_18_area-stacked.vl.json @@ -2,7 +2,7 @@ "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config": {"background":"#ffffff"}, "width": 600, - "data": {"url": "data/complaints.csv", "format": {"type": "csv"}}, + "data": {"url": "/data/complaints.csv", "format": {"type": "csv"}}, "mark": "area", "encoding": { "x": { diff --git a/spec/5_19_force.vg.json b/spec/5_19_force.vg.json index 1c3d482..9501581 100644 --- a/spec/5_19_force.vg.json +++ b/spec/5_19_force.vg.json @@ -59,12 +59,12 @@ "data": [ { "name": "node-data", - "url": "data/miserables.small.json", + "url": "/data/miserables.small.json", "format": {"type": "json", "property": "nodes"} }, { "name": "link-data", - "url": "data/miserables.small.json", + "url": "/data/miserables.small.json", "format": {"type": "json", "property": "links"}, "transform": [ ] diff --git a/spec/5_1_scatter.vl.json b/spec/5_1_scatter.vl.json index b9b9d0c..3a48008 100644 --- a/spec/5_1_scatter.vl.json +++ b/spec/5_1_scatter.vl.json @@ -2,7 +2,7 @@ "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config": {"background":"#ffffff"}, "mark": "point", - "data": {"url": "data/complaints.csv", "format": {"type": "csv"}}, + "data": {"url": "/data/complaints.csv", "format": {"type": "csv"}}, "transform": [ { "as": "relief", diff --git a/spec/5_20_circular.vg.json b/spec/5_20_circular.vg.json index 99a2cae..f2a19f5 100644 --- a/spec/5_20_circular.vg.json +++ b/spec/5_20_circular.vg.json @@ -36,7 +36,7 @@ "data": [ { "name": "nodes", - "url": "data/miserables.json", + "url": "/data/miserables.json", "format": {"type": "json", "property": "nodes"}, "transform": [ { "type": "filter", @@ -62,7 +62,7 @@ }, { "name": "links", - "url": "data/miserables.json", + "url": "/data/miserables.json", "format": {"type": "json", "property": "links"}, "transform": [ { "type": "filter", diff --git a/spec/5_21_adjacency_noninteractive.vg.json b/spec/5_21_adjacency_noninteractive.vg.json index 2bd9503..f5b8a37 100644 --- a/spec/5_21_adjacency_noninteractive.vg.json +++ b/spec/5_21_adjacency_noninteractive.vg.json @@ -15,7 +15,7 @@ "data": [ { "name": "nodes", - "url": "data/miserables.json", + "url": "/data/miserables.json", "format": {"type": "json", "property": "nodes"}, "transform": [ { "type": "filter", @@ -26,7 +26,7 @@ }, { "name": "edges", - "url": "data/miserables.json", + "url": "/data/miserables.json", "format": {"type": "json", "property": "links"}, "transform": [ { "type": "filter", diff --git a/spec/5_21a_adjacency.vg.json b/spec/5_21a_adjacency.vg.json index 337dd07..c372343 100644 --- a/spec/5_21a_adjacency.vg.json +++ b/spec/5_21a_adjacency.vg.json @@ -33,7 +33,7 @@ "data": [ { "name": "nodes", - "url": "data/miserables.json", + "url": "/data/miserables.json", "format": {"type": "json", "property": "nodes"}, "transform": [ { "type": "collect", "sort": {"field": "group"} }, @@ -50,7 +50,7 @@ }, { "name": "edges", - "url": "data/miserables.json", + "url": "/data/miserables.json", "format": {"type": "json", "property": "links"}, "transform": [ { diff --git a/spec/5_22_treeview.vg.json b/spec/5_22_treeview.vg.json index 370cdaf..5d3b929 100644 --- a/spec/5_22_treeview.vg.json +++ b/spec/5_22_treeview.vg.json @@ -26,7 +26,7 @@ "data": [ { "name": "tree", - "url": "data/complaints_tree.json", + "url": "/data/complaints_tree.json", "transform": [ { "type": "stratify", diff --git a/spec/5_23_treemap.vg.json b/spec/5_23_treemap.vg.json index e5587bf..cfb0443 100644 --- a/spec/5_23_treemap.vg.json +++ b/spec/5_23_treemap.vg.json @@ -26,7 +26,7 @@ "data": [ { "name": "tree", - "url": "data/complaints_tree.json", + "url": "/data/complaints_tree.json", "transform": [ { "type": "stratify", diff --git a/spec/5_24_sunburst.vg.json b/spec/5_24_sunburst.vg.json index 60f92e6..0042422 100644 --- a/spec/5_24_sunburst.vg.json +++ b/spec/5_24_sunburst.vg.json @@ -8,7 +8,7 @@ "data": [ { "name": "tree", - "url": "data/complaints_tree.json", + "url": "/data/complaints_tree.json", "transform": [ { "type": "stratify", diff --git a/spec/5_25_map.vg.json b/spec/5_25_map.vg.json index 58d63ee..13f4240 100644 --- a/spec/5_25_map.vg.json +++ b/spec/5_25_map.vg.json @@ -5,7 +5,7 @@ "data": [ { "name": "income", - "url": "data/income.csv", + "url": "/data/income.csv", "format": { "type": "csv", "parse": {"id": "number","value": "number"} @@ -20,7 +20,7 @@ }, { "name": "states", - "url": "data/us-10m.json", + "url": "/data/us-10m.json", "format": {"type": "topojson","feature": "states"}, "transform": [ { diff --git a/spec/5_26_zip.vg.json b/spec/5_26_zip.vg.json index 5a99150..255e0db 100644 --- a/spec/5_26_zip.vg.json +++ b/spec/5_26_zip.vg.json @@ -15,13 +15,13 @@ "data": [ { "name": "states", - "url": "data/us-10m.json", + "url": "/data/us-10m.json", "format": {"type": "topojson","feature": "states"}, "transform": [{"type": "geopath","projection": "projection"}] }, { "name": "zipcodes", - "url": "data/zip_codes_states.csv", + "url": "/data/zip_codes_states.csv", "format": { "type": "csv", "parse": { diff --git a/spec/5_2_clustered-bar.vl.json b/spec/5_2_clustered-bar.vl.json index 5bd58c5..1f307d8 100644 --- a/spec/5_2_clustered-bar.vl.json +++ b/spec/5_2_clustered-bar.vl.json @@ -2,7 +2,7 @@ "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config": {"background":"#ffffff"}, "mark": "bar", - "data": {"url": "data/complaints.csv", "format": {"type": "csv"}}, + "data": {"url": "/data/complaints.csv", "format": {"type": "csv"}}, "transform": [{ "as": "Relief", "calculate": "indexof(datum['Company response to consumer'], 'relief') >= 0" diff --git a/spec/5_3_clustered-bar-2.vl.json b/spec/5_3_clustered-bar-2.vl.json index 56b1393..79456ca 100644 --- a/spec/5_3_clustered-bar-2.vl.json +++ b/spec/5_3_clustered-bar-2.vl.json @@ -2,7 +2,7 @@ "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config": {"background":"#ffffff"}, "mark": "bar", - "data": {"url": "data/complaints.csv", "format": {"type": "csv"}}, + "data": {"url": "/data/complaints.csv", "format": {"type": "csv"}}, "transform": [{ "as": "Relief", "calculate": "indexof(datum['Company response to consumer'], 'relief') >= 0" diff --git a/spec/5_4_stacked.vl.json b/spec/5_4_stacked.vl.json index afb6f25..71ab017 100644 --- a/spec/5_4_stacked.vl.json +++ b/spec/5_4_stacked.vl.json @@ -2,7 +2,7 @@ "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config": {"background":"#ffffff"}, "mark": "bar", - "data": {"url": "data/complaints.csv", "format": {"type": "csv"}}, + "data": {"url": "/data/complaints.csv", "format": {"type": "csv"}}, "transform": [{ "as": "Relief", "calculate": "indexof(datum['Company response to consumer'], 'relief') >= 0" diff --git a/spec/5_6_hist-cat.vl.json b/spec/5_6_hist-cat.vl.json index 0fe39b8..b39af49 100644 --- a/spec/5_6_hist-cat.vl.json +++ b/spec/5_6_hist-cat.vl.json @@ -2,7 +2,7 @@ "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config": {"background":"#ffffff"}, "data": { - "url": "data/cars.csv", + "url": "/data/cars.csv", "format": {"type":"csv"} }, "mark": "bar", diff --git a/spec/5_7_hist-quant.vl.json b/spec/5_7_hist-quant.vl.json index 78c5b1f..59b7f9b 100644 --- a/spec/5_7_hist-quant.vl.json +++ b/spec/5_7_hist-quant.vl.json @@ -1,7 +1,7 @@ { "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config": {"background":"#ffffff"}, - "data": { "url": "data/cars.csv" }, + "data": { "url": "/data/cars.csv" }, "mark": "bar", "encoding": { "x": {"field": "city-mpg", "type": "quantitative", "bin": true, "axis": {"title": "City MPG"}}, diff --git a/spec/5_8_fixed_smoothed.vg.json b/spec/5_8_fixed_smoothed.vg.json index 7144ccc..10873f0 100644 --- a/spec/5_8_fixed_smoothed.vg.json +++ b/spec/5_8_fixed_smoothed.vg.json @@ -17,7 +17,7 @@ "data": [ { "name": "points", - "url": "data/cars.csv", + "url": "/data/cars.csv", "format": { "type": "csv", "parse": { diff --git a/spec/5_9_box-plot.vl.json b/spec/5_9_box-plot.vl.json index cbfff85..a083298 100644 --- a/spec/5_9_box-plot.vl.json +++ b/spec/5_9_box-plot.vl.json @@ -1,7 +1,7 @@ { "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config": {"background":"#ffffff"}, - "data": { "url": "data/cars.csv" }, + "data": { "url": "/data/cars.csv" }, "layer": [ { "mark": "rule", diff --git a/spec/6_1_small-multiples-states.vg.json b/spec/6_1_small-multiples-states.vg.json index fcc7510..5c3e10c 100644 --- a/spec/6_1_small-multiples-states.vg.json +++ b/spec/6_1_small-multiples-states.vg.json @@ -5,7 +5,7 @@ "data": [ { "name": "income", - "url": "data/income_cleaned.csv", + "url": "/data/income_cleaned.csv", "format": { "type": "csv", "parse": {"id": "number","value": "number"} @@ -13,7 +13,7 @@ }, { "name": "states", - "url": "data/us-10m.json", + "url": "/data/us-10m.json", "format": {"type": "topojson","feature": "states"} } ], diff --git a/spec/6_2_splom.vl.json b/spec/6_2_splom.vl.json index 83bc8fe..51b0497 100644 --- a/spec/6_2_splom.vl.json +++ b/spec/6_2_splom.vl.json @@ -1,7 +1,7 @@ { "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config": {"background":"#ffffff"}, - "data": {"url": "data/cars.csv"}, + "data": {"url": "/data/cars.csv"}, "repeat": { "row": [ "length", diff --git a/spec/6_9_maps.vg.json b/spec/6_9_maps.vg.json index f7b79df..655f509 100644 --- a/spec/6_9_maps.vg.json +++ b/spec/6_9_maps.vg.json @@ -7,7 +7,7 @@ "data": [ { "name": "all", - "url": "data/melted.csv", + "url": "/data/melted.csv", "format": { "type": "csv", "parse": {"id": "number","value": "number"} @@ -45,7 +45,7 @@ }, { "name": "states", - "url": "data/us-10m.json", + "url": "/data/us-10m.json", "format": {"type": "topojson","feature": "states"} } ], diff --git a/spec/unused/multiview_12_dual-axis.vl.json b/spec/unused/multiview_12_dual-axis.vl.json index 005160d..85e6eb1 100644 --- a/spec/unused/multiview_12_dual-axis.vl.json +++ b/spec/unused/multiview_12_dual-axis.vl.json @@ -5,7 +5,7 @@ "height": 240, "layer": [ { - "data": {"url": "data/co2.csv"}, + "data": {"url": "/data/co2.csv"}, "mark": "line", "encoding": { "x": { @@ -45,7 +45,7 @@ } }, { - "data": {"url": "data/temp.csv"}, + "data": {"url": "/data/temp.csv"}, "mark": "line", "encoding": { "x": { diff --git a/spec/unused/multiview_2_bars-states.vl.json b/spec/unused/multiview_2_bars-states.vl.json index 3d9ddad..193065e 100644 --- a/spec/unused/multiview_2_bars-states.vl.json +++ b/spec/unused/multiview_2_bars-states.vl.json @@ -2,7 +2,7 @@ "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config":{"background":"#ffffff"}, "data": { - "url": "data/census-income-pivoted.csv", + "url": "/data/census-income-pivoted.csv", "format": {"type": "csv", "parse": {"order": "number"}} }, "transform": [ diff --git a/spec/unused/multiview_3_bars-levels.vl.json b/spec/unused/multiview_3_bars-levels.vl.json index 7c9507b..593d680 100644 --- a/spec/unused/multiview_3_bars-levels.vl.json +++ b/spec/unused/multiview_3_bars-levels.vl.json @@ -2,7 +2,7 @@ "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config":{"background":"#ffffff"}, "data": { - "url": "data/census-income-pivoted.csv", + "url": "/data/census-income-pivoted.csv", "format": {"type": "csv", "parse": {"order": "number", "total": "number"}} }, "mark": "bar", diff --git a/spec/unused/multiview_5_bars-region.vl.json b/spec/unused/multiview_5_bars-region.vl.json index 2b5bfc8..1bd73ab 100644 --- a/spec/unused/multiview_5_bars-region.vl.json +++ b/spec/unused/multiview_5_bars-region.vl.json @@ -2,7 +2,7 @@ "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config":{"background":"#ffffff"}, "data": { - "url": "data/census-income-pivoted.csv", + "url": "/data/census-income-pivoted.csv", "format": {"type": "csv", "parse": {"order": "number", "total": "number"}} }, "mark": "bar", diff --git a/spec/unused/multiview_9_dashboard.vl.json b/spec/unused/multiview_9_dashboard.vl.json index 756e5ab..ddd0246 100644 --- a/spec/unused/multiview_9_dashboard.vl.json +++ b/spec/unused/multiview_9_dashboard.vl.json @@ -1,7 +1,7 @@ { "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config": {"background":"#ffffff"}, - "data": {"url": "data/cars.csv"}, + "data": {"url": "/data/cars.csv"}, "vconcat": [{ "repeat": {"column": ["horsepower","city-mpg","highway-mpg"]}, "spec": { diff --git a/spec/unused/singleview_13_pie.vg.json b/spec/unused/singleview_13_pie.vg.json index c64f6c3..8f14443 100644 --- a/spec/unused/singleview_13_pie.vg.json +++ b/spec/unused/singleview_13_pie.vg.json @@ -6,7 +6,7 @@ "data": [ { "name": "table", - "url": "data/complaints.csv", + "url": "/data/complaints.csv", "format": {"type": "csv","parse": "auto"}, "transform": [ { diff --git a/spec/unused/singleview_18_line-trellis.vl.json b/spec/unused/singleview_18_line-trellis.vl.json index cfd7ae7..c5825c1 100644 --- a/spec/unused/singleview_18_line-trellis.vl.json +++ b/spec/unused/singleview_18_line-trellis.vl.json @@ -3,7 +3,7 @@ "config": {"background":"#ffffff"}, "width": 600, "height": 100, - "data": {"url": "data/complaints.csv", "format": {"type": "csv"}}, + "data": {"url": "/data/complaints.csv", "format": {"type": "csv"}}, "mark": "line", "encoding": { "x": { diff --git a/spec/unused/singleview_28_radar.vg.json b/spec/unused/singleview_28_radar.vg.json index 3b4e89c..18a1c70 100644 --- a/spec/unused/singleview_28_radar.vg.json +++ b/spec/unused/singleview_28_radar.vg.json @@ -9,7 +9,7 @@ "data": [ { "name": "cars", - "url": "data/cars.csv", + "url": "/data/cars.csv", "format": { "type": "csv", "parse": { diff --git a/spec/unused/singleview_28_radar_variant1.vg.json b/spec/unused/singleview_28_radar_variant1.vg.json index 774b3c7..b1429dc 100644 --- a/spec/unused/singleview_28_radar_variant1.vg.json +++ b/spec/unused/singleview_28_radar_variant1.vg.json @@ -22,7 +22,7 @@ }, { "name": "cars", - "url": "data/cars.csv", + "url": "/data/cars.csv", "format": { "type": "csv", "parse": { diff --git a/spec/unused/singleview_28_radar_variant2.vg.json b/spec/unused/singleview_28_radar_variant2.vg.json index 95090aa..bf12286 100644 --- a/spec/unused/singleview_28_radar_variant2.vg.json +++ b/spec/unused/singleview_28_radar_variant2.vg.json @@ -22,7 +22,7 @@ }, { "name": "cars", - "url": "data/cars.csv", + "url": "/data/cars.csv", "format": { "type": "csv", "parse": { diff --git a/spec/unused/singleview_29_parallel-coords.vg.json b/spec/unused/singleview_29_parallel-coords.vg.json index 960e109..2b8caed 100644 --- a/spec/unused/singleview_29_parallel-coords.vg.json +++ b/spec/unused/singleview_29_parallel-coords.vg.json @@ -16,7 +16,7 @@ "data": [ { "name": "cars", - "url": "data/cars.csv", + "url": "/data/cars.csv", "format": { "type": "csv", "parse": { diff --git a/spec/unused/singleview_2a-multi-histogram.vl.json b/spec/unused/singleview_2a-multi-histogram.vl.json index a421c7d..25485cb 100644 --- a/spec/unused/singleview_2a-multi-histogram.vl.json +++ b/spec/unused/singleview_2a-multi-histogram.vl.json @@ -1,7 +1,7 @@ { "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config": {"background":"#ffffff"}, - "data": { "url": "data/cars.csv" }, + "data": { "url": "/data/cars.csv" }, "mark": "bar", "encoding": { "x": {"bin": true, "field": "curb-weight", "type": "quantitative", "axis": {"title": "Curb Weight"}}, diff --git a/spec/unused/singleview_2b-bar.vl.json b/spec/unused/singleview_2b-bar.vl.json index cd604b1..83c9090 100644 --- a/spec/unused/singleview_2b-bar.vl.json +++ b/spec/unused/singleview_2b-bar.vl.json @@ -1,7 +1,7 @@ { "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config": {"background":"#ffffff"}, - "data": { "url": "data/cars.csv" }, + "data": { "url": "/data/cars.csv" }, "mark": "bar", "encoding": { "x": {"field": "body-style", "type": "nominal", "axis": {"title": "Body Style"}}, diff --git a/spec/unused/singleview_2c-box-plot.vl.json b/spec/unused/singleview_2c-box-plot.vl.json index 7f5252f..623403d 100644 --- a/spec/unused/singleview_2c-box-plot.vl.json +++ b/spec/unused/singleview_2c-box-plot.vl.json @@ -1,7 +1,7 @@ { "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config": {"background":"#ffffff"}, - "data": { "url": "data/cars.csv" }, + "data": { "url": "/data/cars.csv" }, "layer": [ { "mark": "rule", diff --git a/spec/unused/singleview_5_13a_clustered-bar-chart.vg.json b/spec/unused/singleview_5_13a_clustered-bar-chart.vg.json index e14cecb..e0432e4 100644 --- a/spec/unused/singleview_5_13a_clustered-bar-chart.vg.json +++ b/spec/unused/singleview_5_13a_clustered-bar-chart.vg.json @@ -6,7 +6,7 @@ "data": [ { "name": "source_0", - "url": "data/cars.csv", + "url": "/data/cars.csv", "format": { "type": "csv", "parse": { diff --git a/spec/unused/singleview_5_hist-trellis.vl.json b/spec/unused/singleview_5_hist-trellis.vl.json index e4b7d52..35ea8e3 100644 --- a/spec/unused/singleview_5_hist-trellis.vl.json +++ b/spec/unused/singleview_5_hist-trellis.vl.json @@ -1,7 +1,7 @@ { "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "config":{"background":"#ffffff"}, - "data": { "url": "data/cars.csv" }, + "data": { "url": "/data/cars.csv" }, "mark": "bar", "encoding": { "column": {"field": "body-style", "type": "nominal", "header": {"title": "Body Style"}}, diff --git a/spec/unused/singleview_7_smoothed.vl.json b/spec/unused/singleview_7_smoothed.vl.json index fd12e7c..1fe2614 100644 --- a/spec/unused/singleview_7_smoothed.vl.json +++ b/spec/unused/singleview_7_smoothed.vl.json @@ -17,7 +17,7 @@ "data": [ { "name": "points", - "url": "data/cars.csv", + "url": "/data/cars.csv", "format": { "type": "csv", "parse": { diff --git a/specs.json b/specs.json index 82edcfd..c4d2f5d 100644 --- a/specs.json +++ b/specs.json @@ -1,44 +1,44 @@ [ - "multiview_6_1_small-multiples-states.vg.json", - "multiview_6_2_splom.vl.json", - "multiview_6_9_maps.vg.json", - "multiview_6_10_crossfilter.vl.json", - "singleview_5_1_scatter.vl.json", - "singleview_5_2_clustered-bar.vl.json", - "singleview_5_3_clustered-bar-2.vl.json", - "singleview_5_4_stacked.vl.json", - "singleview_5_6_hist-cat.vl.json", - "singleview_5_7_hist-quant.vl.json", - "singleview_5_8_fixed_smoothed.vg.json", - "singleview_5_9_box-plot.vl.json", - "singleview_5_10_density-cat.vl.json", - "singleview_5_11_density-cont.vl.json", - "singleview_5_12_bar-chart.vl.json", - "singleview_5_13_clustered-bar-chart.vl.json", - "singleview_5_13a_clustered-bar-chart.vg.json", - "singleview_5_14_justone_pie.vg.json", - "singleview_5_15_heatmap.vl.json", - "singleview_5_16_scatterplot.vl.json", - "singleview_5_17_line.vl.json", - "singleview_5_18_area-stacked.vl.json", - "singleview_5_19_force.vg.json", - "singleview_5_20_circular.vg.json", - "singleview_5_21_adjacency_noninteractive.vg.json", - "singleview_5_21a_adjacency.vg.json", - "singleview_5_22_treeview.vg.json", - "singleview_5_23_treemap.vg.json", - "singleview_5_24_sunburst.vg.json", - "singleview_5_25_map.vg.json", - "singleview_5_26_zip.vg.json", - "singleview_5_27_wordcloud.vg.json", - "singleview_2a-multi-histogram.vl.json", - "singleview_2b-bar.vl.json", - "singleview_2c-box-plot.vl.json", - "singleview_5_hist-trellis.vl.json", - "singleview_7_smoothed.vl.json", - "singleview_13_pie.vg.json", - "singleview_18_line-trellis.vl.json", - "singleview_28_radar.vg.json", - "singleview_29_parallel-coords.vg.json", - "singleview_badradar.vg.json" + "6_1_small-multiples-states.vg.json", + "6_2_splom.vl.json", + "6_9_maps.vg.json", + "6_10_crossfilter.vl.json", + "5_1_scatter.vl.json", + "5_2_clustered-bar.vl.json", + "5_3_clustered-bar-2.vl.json", + "5_4_stacked.vl.json", + "5_6_hist-cat.vl.json", + "5_7_hist-quant.vl.json", + "5_8_fixed_smoothed.vg.json", + "5_9_box-plot.vl.json", + "5_10_density-cat.vl.json", + "5_11_density-cont.vl.json", + "5_12_bar-chart.vl.json", + "5_13_clustered-bar-chart.vl.json", + "5_13a_clustered-bar-chart.vg.json", + "5_14_justone_pie.vg.json", + "5_15_heatmap.vl.json", + "5_16_scatterplot.vl.json", + "5_17_line.vl.json", + "5_18_area-stacked.vl.json", + "5_19_force.vg.json", + "5_20_circular.vg.json", + "5_21_adjacency_noninteractive.vg.json", + "5_21a_adjacency.vg.json", + "5_22_treeview.vg.json", + "5_23_treemap.vg.json", + "5_24_sunburst.vg.json", + "5_25_map.vg.json", + "5_26_zip.vg.json", + "5_27_wordcloud.vg.json", + "2a-multi-histogram.vl.json", + "2b-bar.vl.json", + "2c-box-plot.vl.json", + "5_hist-trellis.vl.json", + "7_smoothed.vl.json", + "13_pie.vg.json", + "18_line-trellis.vl.json", + "28_radar.vg.json", + "29_parallel-coords.vg.json", + "badradar.vg.json" ] \ No newline at end of file diff --git a/test.md b/test.md deleted file mode 100644 index 0b20159..0000000 --- a/test.md +++ /dev/null @@ -1,31 +0,0 @@ ---- ---- - -Jekyll test document - -{% for group in site.data.figures %} -# {{ group.group }} -{% for figure in group.children %} - -{% if figure.number %} -{% if figure.variable %} -## {{ figure.number }}: {{ figure.title}} ({{ figure.variable }}) -{% else %} -## {{ figure.number }}: {{ figure.title}} -{% endif %} -{% else %} -## {{ figure.spec }} -{% endif %} - -{% assign imgurl = figure.spec | remove:".vl.json" | remove:".vg.json" | append: ".png" | prepend: "img/" %} - - - -{{ figure.caption }} - -{% if figure.note %} -_Note: {{figure.note}}_ -{% endif %} - -{% endfor %} -{% endfor %}