Skip to content

Commit

Permalink
refactor: simplify path sort in output Vega specs (#9348)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanitw committed May 9, 2024
1 parent 7cd3829 commit 40a59dc
Show file tree
Hide file tree
Showing 132 changed files with 192 additions and 226 deletions.
2 changes: 1 addition & 1 deletion examples/compiled/area.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"name": "marks",
"type": "area",
"style": ["area"],
"sort": {"field": "datum[\"yearmonth_date\"]"},
"sort": {"field": "x"},
"from": {"data": "source_0"},
"encode": {
"update": {
Expand Down
2 changes: 1 addition & 1 deletion examples/compiled/area_cumulative_freq.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"name": "marks",
"type": "area",
"style": ["area"],
"sort": {"field": "datum[\"IMDB Rating\"]"},
"sort": {"field": "x"},
"from": {"data": "source_0"},
"encode": {
"update": {
Expand Down
2 changes: 1 addition & 1 deletion examples/compiled/area_density.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"name": "marks",
"type": "area",
"style": ["area"],
"sort": {"field": "datum[\"value\"]"},
"sort": {"field": "x"},
"from": {"data": "source_0"},
"encode": {
"update": {
Expand Down
2 changes: 1 addition & 1 deletion examples/compiled/area_density_facet.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"name": "child_marks",
"type": "area",
"style": ["area"],
"sort": {"field": "datum[\"value\"]"},
"sort": {"field": "x"},
"from": {"data": "facet"},
"encode": {
"update": {
Expand Down
2 changes: 1 addition & 1 deletion examples/compiled/area_density_stacked.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"name": "marks",
"type": "area",
"style": ["area"],
"sort": {"field": "datum[\"value\"]"},
"sort": {"field": "x"},
"from": {"data": "faceted_path_main"},
"encode": {
"update": {
Expand Down
2 changes: 1 addition & 1 deletion examples/compiled/area_density_stacked_fold.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"name": "marks",
"type": "area",
"style": ["area"],
"sort": {"field": "datum[\"value\"]"},
"sort": {"field": "x"},
"from": {"data": "faceted_path_main"},
"encode": {
"update": {
Expand Down
4 changes: 2 additions & 2 deletions examples/compiled/area_gradient.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"name": "layer_0_marks",
"type": "area",
"style": ["area"],
"sort": {"field": "datum[\"date\"]"},
"sort": {"field": "x"},
"from": {"data": "source_0"},
"encode": {
"update": {
Expand Down Expand Up @@ -72,7 +72,7 @@
"name": "layer_1_marks",
"type": "line",
"style": ["line"],
"sort": {"field": "datum[\"date\"]"},
"sort": {"field": "x"},
"from": {"data": "source_0"},
"encode": {
"update": {
Expand Down
4 changes: 2 additions & 2 deletions examples/compiled/area_horizon.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"type": "area",
"clip": true,
"style": ["area"],
"sort": {"field": "datum[\"x\"]"},
"sort": {"field": "x"},
"from": {"data": "data_1"},
"encode": {
"update": {
Expand All @@ -115,7 +115,7 @@
"type": "area",
"clip": true,
"style": ["area"],
"sort": {"field": "datum[\"x\"]"},
"sort": {"field": "x"},
"from": {"data": "data_2"},
"encode": {
"update": {
Expand Down
2 changes: 1 addition & 1 deletion examples/compiled/area_invalid_null.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"name": "marks",
"type": "area",
"style": ["area"],
"sort": {"field": "datum[\"x\"]"},
"sort": {"field": "x"},
"from": {"data": "data_0"},
"encode": {
"update": {
Expand Down
4 changes: 2 additions & 2 deletions examples/compiled/area_overlay.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"name": "layer_0_marks",
"type": "area",
"style": ["area"],
"sort": {"field": "datum[\"date\"]"},
"sort": {"field": "x"},
"from": {"data": "data_0"},
"encode": {
"update": {
Expand All @@ -82,7 +82,7 @@
"name": "layer_1_marks",
"type": "line",
"style": ["line"],
"sort": {"field": "datum[\"date\"]"},
"sort": {"field": "x"},
"from": {"data": "data_0"},
"encode": {
"update": {
Expand Down
4 changes: 2 additions & 2 deletions examples/compiled/area_overlay_with_y2.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"name": "layer_0_marks",
"type": "area",
"style": ["area"],
"sort": {"field": "datum[\"date\"]"},
"sort": {"field": "x"},
"from": {"data": "source_0"},
"encode": {
"update": {
Expand All @@ -52,7 +52,7 @@
"name": "layer_1_marks",
"type": "line",
"style": ["line"],
"sort": {"field": "datum[\"date\"]"},
"sort": {"field": "x"},
"from": {"data": "source_0"},
"encode": {
"update": {
Expand Down
2 changes: 1 addition & 1 deletion examples/compiled/area_params.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"name": "marks",
"type": "area",
"style": ["area"],
"sort": {"field": "datum[\"u\"]"},
"sort": {"field": "x"},
"from": {"data": "data_0"},
"encode": {
"update": {
Expand Down
2 changes: 1 addition & 1 deletion examples/compiled/area_temperature_range.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"name": "marks",
"type": "area",
"style": ["area"],
"sort": {"field": "datum[\"monthdate_date\"]"},
"sort": {"field": "x"},
"from": {"data": "source_0"},
"encode": {
"update": {
Expand Down
2 changes: 1 addition & 1 deletion examples/compiled/area_vertical.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/compiled/area_vertical.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"name": "marks",
"type": "area",
"style": ["area"],
"sort": {"field": "datum[\"year_Year\"]"},
"sort": {"field": "y"},
"from": {"data": "source_0"},
"encode": {
"update": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"name": "layer_0_layer_0_marks",
"type": "area",
"style": ["area", "errorband-band"],
"sort": {"field": "datum[\"year_Year\"]"},
"sort": {"field": "x"},
"from": {"data": "source_0"},
"encode": {
"update": {
Expand All @@ -67,7 +67,7 @@
"name": "layer_0_layer_1_marks",
"type": "line",
"style": ["line", "errorband-borders"],
"sort": {"field": "datum[\"year_Year\"]"},
"sort": {"field": "x"},
"aria": false,
"from": {"data": "source_0"},
"encode": {
Expand All @@ -88,7 +88,7 @@
"name": "layer_0_layer_2_marks",
"type": "line",
"style": ["line", "errorband-borders"],
"sort": {"field": "datum[\"year_Year\"]"},
"sort": {"field": "x"},
"aria": false,
"from": {"data": "source_0"},
"encode": {
Expand Down

0 comments on commit 40a59dc

Please sign in to comment.