Commit a836b78d by Danyel Fisher

some tweaks for better display; moved aux files to subdir

parent f8e51c1e
npm-debug.log npm-debug.log
node_modules/** node_modules/**
\ No newline at end of file png/**
svg/**
scripts/*.bash
\ No newline at end of file
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<script src="node_modules/vega-lite/build/vega-lite.js"></script> <script src="node_modules/vega-lite/build/vega-lite.js"></script>
<script src="node_modules/vega-embed/vega-embed.js"></script>--> <script src="node_modules/vega-embed/vega-embed.js"></script>-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega/3.0.7/vega.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/vega/3.0.6/vega.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-lite/2.0.0-rc5/vega-lite.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/vega-lite/2.0.0-rc5/vega-lite.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-embed/3.0.0-rc6/vega-embed.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/vega-embed/3.0.0-rc6/vega-embed.js"></script>
</head> </head>
......
{ {
"dependencies": { "dependencies": {
"canvas": "^1.6.7",
"vega": "^3.0.7", "vega": "^3.0.7",
"vega-embed": "^3.0.0-rc6", "vega-embed": "^3.0.0-rc6",
"vega-lite": "^2.0.0-rc5" "vega-lite": "^2.0.0-rc5"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"data": {"url": "data/complaints.csv", "format": {"type": "csv"}}, "data": {"url": "data/complaints.csv", "format": {"type": "csv"}},
"mark": "line", "mark": "line",
"encoding": { "encoding": {
"x": {"timeUnit": "yearmonth", "field": "Date received", "type": "temporal"}, "x": {"timeUnit": "yearmonth", "field": "Date received", "type": "temporal", "axis":{"title": "Date Received"}},
"y": {"aggregate": "count", "type": "quantitative"} "y": {"aggregate": "count", "type": "quantitative"}
} }
} }
{ {
"$schema": "https://vega.github.io/schema/vega-lite/v2.json", "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"config": {"background":"#ffffff"}, "config": {"background":"#ffffff"},
"data": {"url": "data/complaints.csv", "format": {"type": "csv"}}, "width": 600,
"data": {"url": "data/complaints.csv", "format": {"type": "csv"}},
"mark": "area", "mark": "area",
"encoding": { "encoding": {
"x": { "x": {
......
...@@ -59,22 +59,14 @@ ...@@ -59,22 +59,14 @@
"data": [ "data": [
{ {
"name": "node-data", "name": "node-data",
"url": "data/miserables.json", "url": "data/miserables.small.json",
"format": {"type": "json", "property": "nodes"}, "format": {"type": "json", "property": "nodes"}
"transform": [
{ "type": "filter",
"expr": "datum.index < numNodes" }
]
}, },
{ {
"name": "link-data", "name": "link-data",
"url": "data/miserables.json", "url": "data/miserables.small.json",
"format": {"type": "json", "property": "links"}, "format": {"type": "json", "property": "links"},
"transform": [ "transform": [
{ "type": "filter",
"expr": "datum.source < numNodes" },
{ "type": "filter",
"expr": "datum.target < numNodes" }
] ]
} }
], ],
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
"update": { "update": {
"shape": {"value": "square"}, "shape": {"value": "square"},
"stroke": {"value": "#ccc"}, "stroke": {"value": "#ccc"},
"strokeWidth": {"value": 0.2} "strokeWidth": {"value": 5}
} }
} }
} }
......
{ {
"$schema": "https://vega.github.io/schema/vega/v3.0.json", "$schema": "https://vega.github.io/schema/vega/v3.0.json",
"name": "wordcloud", "name": "wordcloud",
"width": 800, "width": 900,
"height": 400, "height": 500,
"padding": 0, "padding": 0,
"data": [ "data": [
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment