Skip to content

Commit

Permalink
Remove "not" from example specs
Browse files Browse the repository at this point in the history
  • Loading branch information
kanitw committed Jun 9, 2017
1 parent 07bc048 commit a789df8
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 37 deletions.
4 changes: 2 additions & 2 deletions examples/specs/brush.vl.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"x": {"field": "Horsepower", "type": "quantitative"},
"y": {"field": "Miles_per_Gallon", "type": "quantitative"},
"color": {
"condition": {"selection": {"not": "brush"}, "value": "grey"},
"field": "Cylinders", "type": "ordinal"
"condition": {"selection": "brush", "field": "Cylinders", "type": "ordinal"},
"value": "grey"
}
}
}
7 changes: 4 additions & 3 deletions examples/specs/interactive_splom.vl.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@
"type": "quantitative"
},
"color": {
"field": "Origin","type": "nominal",
"condition": {
"selection": {"not": "brush"}, "value": "grey"
}
"selection": "brush",
"field": "Origin","type": "nominal"
},
"value": "grey"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/specs/layered_selections.vl.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"x": {"field": "Horsepower", "type": "quantitative"},
"y": {"field": "Miles_per_Gallon", "type": "quantitative"},
"color": {
"condition": {"selection": {"not": "brush"}, "value": "grey"},
"field": "Cylinders", "type": "ordinal"
"condition": {"selection": "brush", "field": "Cylinders", "type": "ordinal"},
"value": "grey"
},
"size": {
"value": 50,
Expand Down
4 changes: 2 additions & 2 deletions examples/specs/query_widgets.vl.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"x": {"field": "Horsepower", "type": "quantitative"},
"y": {"field": "Miles_per_Gallon", "type": "quantitative"},
"color": {
"field": "Origin", "type": "nominal",
"condition": {"selection": {"not": "CylYr"}, "value": "grey"}
"condition": {"selection": "CylYr", "field": "Origin", "type": "nominal"},
"value": "grey"
}
}
}, {
Expand Down
8 changes: 4 additions & 4 deletions examples/vg-specs/brush.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,12 @@
},
"stroke": [
{
"test": "!(vlInterval(\"brush_store\", \"\", datum, \"union\", \"all\"))",
"value": "grey"
},
{
"test": "vlInterval(\"brush_store\", \"\", datum, \"union\", \"all\")",
"scale": "color",
"field": "Cylinders"
},
{
"value": "grey"
}
],
"fill": {
Expand Down
32 changes: 16 additions & 16 deletions examples/vg-specs/interactive_splom.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -505,12 +505,12 @@
},
"stroke": [
{
"test": "!(vlInterval(\"brush_store\", \"child_Horsepower_Horsepower_\", datum, \"union\", \"all\"))",
"value": "grey"
},
{
"test": "vlInterval(\"brush_store\", \"child_Horsepower_Horsepower_\", datum, \"union\", \"all\")",
"scale": "color",
"field": "Origin"
},
{
"value": "grey"
}
],
"fill": {
Expand Down Expand Up @@ -1063,12 +1063,12 @@
},
"stroke": [
{
"test": "!(vlInterval(\"brush_store\", \"child_Horsepower_Miles_per_Gallon_\", datum, \"union\", \"all\"))",
"value": "grey"
},
{
"test": "vlInterval(\"brush_store\", \"child_Horsepower_Miles_per_Gallon_\", datum, \"union\", \"all\")",
"scale": "color",
"field": "Origin"
},
{
"value": "grey"
}
],
"fill": {
Expand Down Expand Up @@ -1622,12 +1622,12 @@
},
"stroke": [
{
"test": "!(vlInterval(\"brush_store\", \"child_Acceleration_Horsepower_\", datum, \"union\", \"all\"))",
"value": "grey"
},
{
"test": "vlInterval(\"brush_store\", \"child_Acceleration_Horsepower_\", datum, \"union\", \"all\")",
"scale": "color",
"field": "Origin"
},
{
"value": "grey"
}
],
"fill": {
Expand Down Expand Up @@ -2181,12 +2181,12 @@
},
"stroke": [
{
"test": "!(vlInterval(\"brush_store\", \"child_Acceleration_Miles_per_Gallon_\", datum, \"union\", \"all\"))",
"value": "grey"
},
{
"test": "vlInterval(\"brush_store\", \"child_Acceleration_Miles_per_Gallon_\", datum, \"union\", \"all\")",
"scale": "color",
"field": "Origin"
},
{
"value": "grey"
}
],
"fill": {
Expand Down
8 changes: 4 additions & 4 deletions examples/vg-specs/layered_selections.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -616,12 +616,12 @@
},
"fill": [
{
"test": "!(vlInterval(\"brush_store\", \"layer_1_\", datum, \"union\", \"all\"))",
"value": "grey"
},
{
"test": "vlInterval(\"brush_store\", \"layer_1_\", datum, \"union\", \"all\")",
"scale": "color",
"field": "Cylinders"
},
{
"value": "grey"
}
],
"size": [
Expand Down
8 changes: 4 additions & 4 deletions examples/vg-specs/query_widgets.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@
},
"fill": [
{
"test": "!(vlPoint(\"CylYr_store\", \"layer_0_\", datum, \"union\", \"all\"))",
"value": "grey"
},
{
"test": "vlPoint(\"CylYr_store\", \"layer_0_\", datum, \"union\", \"all\")",
"scale": "color",
"field": "Origin"
},
{
"value": "grey"
}
],
"shape": {
Expand Down

0 comments on commit a789df8

Please sign in to comment.