Skip to content

Commit

Permalink
Update Examples to use new specs
Browse files Browse the repository at this point in the history
  • Loading branch information
kanitw committed Jul 31, 2016
1 parent f4c9144 commit b1ac391
Show file tree
Hide file tree
Showing 19 changed files with 259 additions and 51 deletions.
19 changes: 16 additions & 3 deletions examples/specs/1d-N-mark.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,22 @@
]
},
"nest": [
{"groupBy": "fieldTransform"},
{"groupBy": "encoding", "orderGroupBy": "effectiveness"},
{"groupBy": "transpose", "orderGroupBy": "effectiveness"}
{"groupBy": ["field", "aggregate", "bin", "timeUnit"]},
{
"groupBy": [{
"property": "channel",
"replace": {
"x": "xy", "y": "xy",
"color": "style", "size": "style", "shape": "style", "opacity": "style",
"row": "facet", "column": "facet"
}
}],
"orderGroupBy": "effectiveness"
},
{
"groupBy": ["channel"],
"orderGroupBy": "effectiveness"
}
],
"orderBy": "effectiveness"
}
19 changes: 16 additions & 3 deletions examples/specs/1d-N.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,22 @@
]
},
"nest": [
{"groupBy": "fieldTransform"},
{"groupBy": "encoding", "orderGroupBy": "effectiveness"},
{"groupBy": "transpose", "orderGroupBy": "effectiveness"}
{"groupBy": ["field", "aggregate", "bin", "timeUnit"]},
{
"groupBy": [{
"property": "channel",
"replace": {
"x": "xy", "y": "xy",
"color": "style", "size": "style", "shape": "style", "opacity": "style",
"row": "facet", "column": "facet"
}
}],
"orderGroupBy": "effectiveness"
},
{
"groupBy": ["channel"],
"orderGroupBy": "effectiveness"
}
],
"orderBy": "effectiveness",
"config": {
Expand Down
19 changes: 16 additions & 3 deletions examples/specs/1d-O.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,22 @@
]
},
"nest": [
{"groupBy": "fieldTransform"},
{"groupBy": "encoding", "orderGroupBy": "effectiveness"},
{"groupBy": "transpose", "orderGroupBy": "effectiveness"}
{"groupBy": ["field", "aggregate", "bin", "timeUnit"]},
{
"groupBy": [{
"property": "channel",
"replace": {
"x": "xy", "y": "xy",
"color": "style", "size": "style", "shape": "style", "opacity": "style",
"row": "facet", "column": "facet"
}
}],
"orderGroupBy": "effectiveness"
},
{
"groupBy": ["channel"],
"orderGroupBy": "effectiveness"
}
],
"orderBy": "effectiveness",
"config": {
Expand Down
19 changes: 16 additions & 3 deletions examples/specs/1d-Q-mark.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,22 @@
]
},
"nest": [
{"groupBy": "fieldTransform"},
{"groupBy": "encoding", "orderGroupBy": "effectiveness"},
{"groupBy": "transpose", "orderGroupBy": "effectiveness"}
{"groupBy": ["field", "aggregate", "bin", "timeUnit"]},
{
"groupBy": [{
"property": "channel",
"replace": {
"x": "xy", "y": "xy",
"color": "style", "size": "style", "shape": "style", "opacity": "style",
"row": "facet", "column": "facet"
}
}],
"orderGroupBy": "effectiveness"
},
{
"groupBy": ["channel"],
"orderGroupBy": "effectiveness"
}
],
"orderBy": "effectiveness"
}
19 changes: 16 additions & 3 deletions examples/specs/1d-Q.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,22 @@
]
},
"nest": [
{"groupBy": "fieldTransform"},
{"groupBy": "encoding", "orderGroupBy": "effectiveness"},
{"groupBy": "transpose", "orderGroupBy": "effectiveness"}
{"groupBy": ["field", "aggregate", "bin", "timeUnit"]},
{
"groupBy": [{
"property": "channel",
"replace": {
"x": "xy", "y": "xy",
"color": "style", "size": "style", "shape": "style", "opacity": "style",
"row": "facet", "column": "facet"
}
}],
"orderGroupBy": "effectiveness"
},
{
"groupBy": ["channel"],
"orderGroupBy": "effectiveness"
}
],
"orderBy": "effectiveness",
"config": {
Expand Down
19 changes: 16 additions & 3 deletions examples/specs/1d-T.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,22 @@
]
},
"nest": [
{"groupBy": "fieldTransform"},
{"groupBy": "encoding", "orderGroupBy": "effectiveness"},
{"groupBy": "transpose", "orderGroupBy": "effectiveness"}
{"groupBy": ["field", "aggregate", "bin", "timeUnit"]},
{
"groupBy": [{
"property": "channel",
"replace": {
"x": "xy", "y": "xy",
"color": "style", "size": "style", "shape": "style", "opacity": "style",
"row": "facet", "column": "facet"
}
}],
"orderGroupBy": "effectiveness"
},
{
"groupBy": ["channel"],
"orderGroupBy": "effectiveness"
}
],
"orderBy": "effectiveness",
"config": {
Expand Down
19 changes: 16 additions & 3 deletions examples/specs/2d-NxN.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,22 @@
]
},
"nest": [
{"groupBy": "fieldTransform"},
{"groupBy": "encoding", "orderGroupBy": "effectiveness"},
{"groupBy": "transpose", "orderGroupBy": "effectiveness"}
{"groupBy": ["field", "aggregate", "bin", "timeUnit"]},
{
"groupBy": [{
"property": "channel",
"replace": {
"x": "xy", "y": "xy",
"color": "style", "size": "style", "shape": "style", "opacity": "style",
"row": "facet", "column": "facet"
}
}],
"orderGroupBy": "effectiveness"
},
{
"groupBy": ["channel"],
"orderGroupBy": "effectiveness"
}
],
"orderBy": "effectiveness",
"config": {
Expand Down
19 changes: 16 additions & 3 deletions examples/specs/2d-NxQ.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,22 @@
]
},
"nest": [
{"groupBy": "fieldTransform"},
{"groupBy": "encoding", "orderGroupBy": "effectiveness"},
{"groupBy": "transpose", "orderGroupBy": "effectiveness"}
{"groupBy": ["field", "aggregate", "bin", "timeUnit"]},
{
"groupBy": [{
"property": "channel",
"replace": {
"x": "xy", "y": "xy",
"color": "style", "size": "style", "shape": "style", "opacity": "style",
"row": "facet", "column": "facet"
}
}],
"orderGroupBy": "effectiveness"
},
{
"groupBy": ["channel"],
"orderGroupBy": "effectiveness"
}
],
"orderBy": "effectiveness",
"config": {
Expand Down
19 changes: 16 additions & 3 deletions examples/specs/2d-OxQ.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,22 @@
]
},
"nest": [
{"groupBy": "fieldTransform"},
{"groupBy": "encoding", "orderGroupBy": "effectiveness"},
{"groupBy": "transpose", "orderGroupBy": "effectiveness"}
{"groupBy": ["field", "aggregate", "bin", "timeUnit"]},
{
"groupBy": [{
"property": "channel",
"replace": {
"x": "xy", "y": "xy",
"color": "style", "size": "style", "shape": "style", "opacity": "style",
"row": "facet", "column": "facet"
}
}],
"orderGroupBy": "effectiveness"
},
{
"groupBy": ["channel"],
"orderGroupBy": "effectiveness"
}
],
"orderBy": "effectiveness",
"config": {
Expand Down
19 changes: 16 additions & 3 deletions examples/specs/2d-QxQ.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,22 @@
]
},
"nest": [
{"groupBy": "fieldTransform"},
{"groupBy": "encoding", "orderGroupBy": "effectiveness"},
{"groupBy": "transpose", "orderGroupBy": "effectiveness"}
{"groupBy": ["field", "aggregate", "bin", "timeUnit"]},
{
"groupBy": [{
"property": "channel",
"replace": {
"x": "xy", "y": "xy",
"color": "style", "size": "style", "shape": "style", "opacity": "style",
"row": "facet", "column": "facet"
}
}],
"orderGroupBy": "effectiveness"
},
{
"groupBy": ["channel"],
"orderGroupBy": "effectiveness"
}
],
"orderBy": "effectiveness",
"config": {
Expand Down
19 changes: 16 additions & 3 deletions examples/specs/2d-QxT.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,22 @@
]
},
"nest": [
{"groupBy": "fieldTransform"},
{"groupBy": "encoding", "orderGroupBy": "effectiveness"},
{"groupBy": "transpose", "orderGroupBy": "effectiveness"}
{"groupBy": ["field", "aggregate", "bin", "timeUnit"]},
{
"groupBy": [{
"property": "channel",
"replace": {
"x": "xy", "y": "xy",
"color": "style", "size": "style", "shape": "style", "opacity": "style",
"row": "facet", "column": "facet"
}
}],
"orderGroupBy": "effectiveness"
},
{
"groupBy": ["channel"],
"orderGroupBy": "effectiveness"
}
],
"orderBy": "effectiveness",
"config": {
Expand Down
19 changes: 16 additions & 3 deletions examples/specs/3d-NxOxQ.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,22 @@
]
},
"nest": [
{"groupBy": "fieldTransform"},
{"groupBy": "encoding", "orderGroupBy": "effectiveness"},
{"groupBy": "transpose", "orderGroupBy": "effectiveness"}
{"groupBy": ["field", "aggregate", "bin", "timeUnit"]},
{
"groupBy": [{
"property": "channel",
"replace": {
"x": "xy", "y": "xy",
"color": "style", "size": "style", "shape": "style", "opacity": "style",
"row": "facet", "column": "facet"
}
}],
"orderGroupBy": "effectiveness"
},
{
"groupBy": ["channel"],
"orderGroupBy": "effectiveness"
}
],
"orderBy": "effectiveness",
"config": {
Expand Down
19 changes: 16 additions & 3 deletions examples/specs/3d-NxQxQ.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,22 @@
]
},
"nest": [
{"groupBy": "fieldTransform"},
{"groupBy": "encoding", "orderGroupBy": "effectiveness"},
{"groupBy": "transpose", "orderGroupBy": "effectiveness"}
{"groupBy": ["field", "aggregate", "bin", "timeUnit"]},
{
"groupBy": [{
"property": "channel",
"replace": {
"x": "xy", "y": "xy",
"color": "style", "size": "style", "shape": "style", "opacity": "style",
"row": "facet", "column": "facet"
}
}],
"orderGroupBy": "effectiveness"
},
{
"groupBy": ["channel"],
"orderGroupBy": "effectiveness"
}
],
"orderBy": "effectiveness",
"config": {
Expand Down
19 changes: 16 additions & 3 deletions examples/specs/3d-OxQxQ.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,22 @@
]
},
"nest": [
{"groupBy": "fieldTransform"},
{"groupBy": "encoding", "orderGroupBy": "effectiveness"},
{"groupBy": "transpose", "orderGroupBy": "effectiveness"}
{"groupBy": ["field", "aggregate", "bin", "timeUnit"]},
{
"groupBy": [{
"property": "channel",
"replace": {
"x": "xy", "y": "xy",
"color": "style", "size": "style", "shape": "style", "opacity": "style",
"row": "facet", "column": "facet"
}
}],
"orderGroupBy": "effectiveness"
},
{
"groupBy": ["channel"],
"orderGroupBy": "effectiveness"
}
],
"orderBy": "effectiveness",
"config": {
Expand Down
2 changes: 1 addition & 1 deletion examples/specs/bin-maxbins.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
]
},
"nest": [
{"groupBy": "fieldTransform"},
{"groupBy": ["field", "aggregate", "bin", "timeUnit"]},
{"groupBy": "encoding", "orderGroupBy": "effectiveness"},
{"groupBy": "transpose", "orderGroupBy": "effectiveness"}
],
Expand Down
2 changes: 1 addition & 1 deletion examples/specs/rank-by-feature_histogram.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
}
]
},
"groupBy": "fieldTransform",
"groupBy": ["field", "aggregate", "bin", "timeUnit"],
"chooseBy": "effectiveness"
}
Loading

0 comments on commit b1ac391

Please sign in to comment.