Commit 86cee174 by Danyel Fisher

renamed _6_ to _5_, working on fixes and cleanup

parent 74e88768
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
"mark": "bar", "mark": "bar",
"data": {"url": "data/complaints.csv", "format": {"type": "csv"}}, "data": {"url": "data/complaints.csv", "format": {"type": "csv"}},
"transform": [{ "transform": [{
"as": "relief", "as": "Relief",
"calculate": "indexof(datum['Company response to consumer'], 'relief') >= 0" "calculate": "indexof(datum['Company response to consumer'], 'relief') >= 0"
}], }],
"encoding": { "encoding": {
"column": {"field": "Product", "type": "nominal", "header": {"title": ""}}, "column": {"field": "Product", "type": "nominal", "header": {"title": ""}},
"y": {"aggregate": "count", "type": "quantitative"}, "y": {"aggregate": "count", "type": "quantitative"},
"x": {"field": "relief", "type": "nominal"}, "x": {"field": "Relief", "type": "nominal"},
"color": {"field": "Product", "type": "nominal"} "color": {"field": "Product", "type": "nominal"}
} }
} }
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
"mark": "bar", "mark": "bar",
"data": {"url": "data/complaints.csv", "format": {"type": "csv"}}, "data": {"url": "data/complaints.csv", "format": {"type": "csv"}},
"transform": [{ "transform": [{
"as": "relief", "as": "Relief",
"calculate": "indexof(datum['Company response to consumer'], 'relief') >= 0" "calculate": "indexof(datum['Company response to consumer'], 'relief') >= 0"
}], }],
"encoding": { "encoding": {
"column": {"field": "relief", "type": "nominal" }, "column": {"field": "Relief", "type": "nominal" },
"y": {"aggregate": "count", "type": "quantitative"}, "y": {"aggregate": "count", "type": "quantitative"},
"x": {"field": "Product", "type": "nominal", "axis": {"labels": false}}, "x": {"field": "Product", "type": "nominal", "axis": {"labels": false}},
"color": {"field": "Product", "type": "nominal"} "color": {"field": "Product", "type": "nominal"}
......
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
"mark": "bar", "mark": "bar",
"data": {"url": "data/complaints.csv", "format": {"type": "csv"}}, "data": {"url": "data/complaints.csv", "format": {"type": "csv"}},
"transform": [{ "transform": [{
"as": "relief", "as": "Relief",
"calculate": "indexof(datum['Company response to consumer'], 'relief') >= 0" "calculate": "indexof(datum['Company response to consumer'], 'relief') >= 0"
}], }],
"encoding": { "encoding": {
"y": {"field": "Product", "type": "nominal"}, "y": {"field": "Product", "type": "nominal"},
"x": {"aggregate": "count", "type": "quantitative"}, "x": {"aggregate": "count", "type": "quantitative"},
"color": {"field": "relief", "type": "nominal"} "color": {"field": "Relief", "type": "nominal"}
} }
} }
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
}, },
"mark": "bar", "mark": "bar",
"encoding": { "encoding": {
"x": { "x": { "type": "quantitative", "aggregate": "count"},
"y": {
"field": "body-style", "field": "body-style",
"type": "nominal", "type": "nominal",
"axis": {"title": "Body Style"}, "axis": {"title": "Body Style"},
...@@ -16,7 +17,6 @@ ...@@ -16,7 +17,6 @@
"op": "count", "op": "count",
"order": "descending" "order": "descending"
} }
}, }
"y": { "type": "quantitative", "aggregate": "count"}
} }
} }
\ No newline at end of file
...@@ -6,14 +6,16 @@ ...@@ -6,14 +6,16 @@
{ {
"mark": "rule", "mark": "rule",
"encoding": { "encoding": {
"x": {"field": "body-style", "type": "nominal"}, "y": {"field": "body-style", "type": "nominal",
"y": { "axis": { "title": "Body Style"}
},
"x": {
"aggregate": "min", "aggregate": "min",
"field": "city-mpg", "field": "city-mpg",
"type": "quantitative", "type": "quantitative",
"axis": {"title": "City MPG"} "axis": {"title": "City MPG"}
}, },
"y2": { "x2": {
"aggregate": "max", "aggregate": "max",
"field": "city-mpg", "field": "city-mpg",
"type": "quantitative" "type": "quantitative"
...@@ -23,8 +25,8 @@ ...@@ -23,8 +25,8 @@
{ {
"mark": "tick", "mark": "tick",
"encoding": { "encoding": {
"x": {"field": "body-style", "type": "nominal"}, "y": {"field": "body-style", "type": "nominal"},
"y": { "x": {
"aggregate": "min", "aggregate": "min",
"field": "city-mpg", "field": "city-mpg",
"type": "quantitative" "type": "quantitative"
...@@ -35,8 +37,8 @@ ...@@ -35,8 +37,8 @@
{ {
"mark": "tick", "mark": "tick",
"encoding": { "encoding": {
"x": {"field": "body-style", "type": "nominal"}, "y": {"field": "body-style", "type": "nominal"},
"y": { "x": {
"aggregate": "max", "aggregate": "max",
"field": "city-mpg", "field": "city-mpg",
"type": "quantitative" "type": "quantitative"
...@@ -47,13 +49,13 @@ ...@@ -47,13 +49,13 @@
{ {
"mark": "bar", "mark": "bar",
"encoding": { "encoding": {
"x": {"field": "body-style", "type": "nominal"}, "y": {"field": "body-style", "type": "nominal"},
"y": { "x": {
"aggregate": "q1", "aggregate": "q1",
"field": "city-mpg", "field": "city-mpg",
"type": "quantitative" "type": "quantitative"
}, },
"y2": { "x2": {
"aggregate": "q3", "aggregate": "q3",
"field": "city-mpg", "field": "city-mpg",
"type": "quantitative" "type": "quantitative"
...@@ -64,8 +66,8 @@ ...@@ -64,8 +66,8 @@
{ {
"mark": "tick", "mark": "tick",
"encoding": { "encoding": {
"x": {"field": "body-style", "type": "nominal"}, "y": {"field": "body-style", "type": "nominal"},
"y": { "x": {
"aggregate": "median", "aggregate": "median",
"field": "city-mpg", "field": "city-mpg",
"type": "quantitative" "type": "quantitative"
......
...@@ -8,33 +8,33 @@ ...@@ -8,33 +8,33 @@
"multiview_9_dashboard.vl.json", "multiview_9_dashboard.vl.json",
"multiview_10_crossfilter.vl.json", "multiview_10_crossfilter.vl.json",
"multiview_12_dual-axis.vl.json", "multiview_12_dual-axis.vl.json",
"singleview_6_1_scatter.vl.json", "singleview_5_1_scatter.vl.json",
"singleview_6_2_clustered-bar.vl.json", "singleview_5_2_clustered-bar.vl.json",
"singleview_6_3_clustered-bar-2.vl.json", "singleview_5_3_clustered-bar-2.vl.json",
"singleview_6_4_stacked.vl.json", "singleview_5_4_stacked.vl.json",
"singleview_6_6_hist-cat.vl.json", "singleview_5_6_hist-cat.vl.json",
"singleview_6_7_hist-quant.vl.json", "singleview_5_7_hist-quant.vl.json",
"singleview_6_8_fixed_smoothed.vg.json", "singleview_5_8_fixed_smoothed.vg.json",
"singleview_6_9_box-plot.vl.json", "singleview_5_9_box-plot.vl.json",
"singleview_6_10_density-cat.vl.json", "singleview_5_10_density-cat.vl.json",
"singleview_6_11_density-cont.vl.json", "singleview_5_11_density-cont.vl.json",
"singleview_6_12_bar-chart.vl.json", "singleview_5_12_bar-chart.vl.json",
"singleview_6_13_clustered-bar-chart.vl.json", "singleview_5_13_clustered-bar-chart.vl.json",
"singleview_6_14_justone_pie.vg.json", "singleview_5_14_justone_pie.vg.json",
"singleview_6_15_heatmap.vl.json", "singleview_5_15_heatmap.vl.json",
"singleview_6_16_scatterplot.vl.json", "singleview_5_16_scatterplot.vl.json",
"singleview_6_17_line.vl.json", "singleview_5_17_line.vl.json",
"singleview_6_18_area-stacked.vl.json", "singleview_5_18_area-stacked.vl.json",
"singleview_6_19_force.vg.json", "singleview_5_19_force.vg.json",
"singleview_6_20_circular.vg.json", "singleview_5_20_circular.vg.json",
"singleview_6_21_adjacency_noninteractive.vg.json", "singleview_5_21_adjacency_noninteractive.vg.json",
"singleview_6_21a_adjacency.vg.json", "singleview_5_21a_adjacency.vg.json",
"singleview_6_22_treeview.vg.json", "singleview_5_22_treeview.vg.json",
"singleview_6_23_treemap.vg.json", "singleview_5_23_treemap.vg.json",
"singleview_6_24_sunburst.vg.json", "singleview_5_24_sunburst.vg.json",
"singleview_6_25_map.vg.json", "singleview_5_25_map.vg.json",
"singleview_6_26_zip.vg.json", "singleview_5_26_zip.vg.json",
"singleview_6_27_wordcloud.vg.json", "singleview_5_27_wordcloud.vg.json",
"singleview_2a-multi-histogram.vl.json", "singleview_2a-multi-histogram.vl.json",
"singleview_2b-bar.vl.json", "singleview_2b-bar.vl.json",
"singleview_2c-box-plot.vl.json", "singleview_2c-box-plot.vl.json",
......
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