{ "$schema": "https://vega.github.io/schema/vega/v5.json", "background": "white", "padding": 5, "data": [ {"name": "grid_store"}, {"name": "source_0", "url": "data/cars.json", "format": {"type": "json"}}, { "name": "data_0", "source": "source_0", "transform": [ { "type": "filter", "expr": "isValid(datum[\"Miles_per_Gallon\"]) && isFinite(+datum[\"Miles_per_Gallon\"]) && isValid(datum[\"Horsepower\"]) && isFinite(+datum[\"Horsepower\"])" } ] }, { "name": "data_1", "source": "source_0", "transform": [ { "type": "filter", "expr": "isValid(datum[\"Acceleration\"]) && isFinite(+datum[\"Acceleration\"]) && isValid(datum[\"Horsepower\"]) && isFinite(+datum[\"Horsepower\"])" } ] }, { "name": "data_2", "source": "source_0", "transform": [ { "type": "filter", "expr": "isValid(datum[\"Horsepower\"]) && isFinite(+datum[\"Horsepower\"])" } ] }, { "name": "data_3", "source": "source_0", "transform": [ { "type": "filter", "expr": "isValid(datum[\"Miles_per_Gallon\"]) && isFinite(+datum[\"Miles_per_Gallon\"]) && isValid(datum[\"Acceleration\"]) && isFinite(+datum[\"Acceleration\"])" } ] }, { "name": "data_4", "source": "source_0", "transform": [ { "type": "filter", "expr": "isValid(datum[\"Acceleration\"]) && isFinite(+datum[\"Acceleration\"])" } ] }, { "name": "data_5", "source": "source_0", "transform": [ { "type": "filter", "expr": "isValid(datum[\"Horsepower\"]) && isFinite(+datum[\"Horsepower\"]) && isValid(datum[\"Acceleration\"]) && isFinite(+datum[\"Acceleration\"])" } ] }, { "name": "data_6", "source": "source_0", "transform": [ { "type": "filter", "expr": "isValid(datum[\"Miles_per_Gallon\"]) && isFinite(+datum[\"Miles_per_Gallon\"])" } ] }, { "name": "data_7", "source": "source_0", "transform": [ { "type": "filter", "expr": "isValid(datum[\"Acceleration\"]) && isFinite(+datum[\"Acceleration\"]) && isValid(datum[\"Miles_per_Gallon\"]) && isFinite(+datum[\"Miles_per_Gallon\"])" } ] }, { "name": "data_8", "source": "source_0", "transform": [ { "type": "filter", "expr": "isValid(datum[\"Horsepower\"]) && isFinite(+datum[\"Horsepower\"]) && isValid(datum[\"Miles_per_Gallon\"]) && isFinite(+datum[\"Miles_per_Gallon\"])" } ] } ], "signals": [ {"name": "childWidth", "value": 200}, {"name": "childHeight", "value": 200}, { "name": "unit", "value": {}, "on": [ {"events": "mousemove", "update": "isTuple(group()) ? group() : unit"} ] }, { "name": "grid", "update": "{\"Miles_per_Gallon\": grid_Miles_per_Gallon, \"Horsepower\": grid_Horsepower, \"Acceleration\": grid_Acceleration}" }, {"name": "grid_Miles_per_Gallon"}, {"name": "grid_Horsepower"}, {"name": "grid_Acceleration"} ], "layout": {"padding": 20, "columns": 3, "bounds": "full", "align": "all"}, "marks": [ { "type": "group", "name": "child__row_Horsepowercolumn_Miles_per_Gallon_group", "style": "cell", "encode": { "update": { "width": {"signal": "childWidth"}, "height": {"signal": "childHeight"} } }, "signals": [ { "name": "grid_Miles_per_Gallon", "on": [ { "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / childWidth)" }, { "events": {"signal": "grid_zoom_delta"}, "update": "zoomLinear(domain(\"child__row_Horsepowercolumn_Miles_per_Gallon_x\"), grid_zoom_anchor.x, grid_zoom_delta)" } ], "push": "outer" }, { "name": "grid_Horsepower", "on": [ { "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_y, grid_translate_delta.y / childHeight)" }, { "events": {"signal": "grid_zoom_delta"}, "update": "zoomLinear(domain(\"child__row_Horsepowercolumn_Miles_per_Gallon_y\"), grid_zoom_anchor.y, grid_zoom_delta)" } ], "push": "outer" }, { "name": "grid_tuple", "on": [ { "events": [ {"signal": "grid_Miles_per_Gallon || grid_Horsepower"} ], "update": "grid_Miles_per_Gallon && grid_Horsepower ? {unit: \"child__row_Horsepowercolumn_Miles_per_Gallon\", fields: grid_tuple_fields, values: [grid_Miles_per_Gallon,grid_Horsepower]} : null" } ] }, { "name": "grid_tuple_fields", "value": [ {"field": "Miles_per_Gallon", "channel": "x", "type": "R"}, {"field": "Horsepower", "channel": "y", "type": "R"} ] }, { "name": "grid_translate_anchor", "value": {}, "on": [ { "events": [{"source": "scope", "type": "mousedown"}], "update": "{x: x(unit), y: y(unit), extent_x: domain(\"child__row_Horsepowercolumn_Miles_per_Gallon_x\"), extent_y: domain(\"child__row_Horsepowercolumn_Miles_per_Gallon_y\")}" } ] }, { "name": "grid_translate_delta", "value": {}, "on": [ { "events": [ { "source": "window", "type": "mousemove", "consume": true, "between": [ {"source": "scope", "type": "mousedown"}, {"source": "window", "type": "mouseup"} ] } ], "update": "{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}" } ] }, { "name": "grid_zoom_anchor", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "update": "{x: invert(\"child__row_Horsepowercolumn_Miles_per_Gallon_x\", x(unit)), y: invert(\"child__row_Horsepowercolumn_Miles_per_Gallon_y\", y(unit))}" } ] }, { "name": "grid_zoom_delta", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "force": true, "update": "pow(1.001, event.deltaY * pow(16, event.deltaMode))" } ] }, { "name": "grid_modify", "on": [ { "events": {"signal": "grid_tuple"}, "update": "modify(\"grid_store\", grid_tuple, true)" } ] } ], "marks": [ { "name": "child__row_Horsepowercolumn_Miles_per_Gallon_marks", "type": "symbol", "clip": true, "style": ["point"], "interactive": true, "from": {"data": "data_0"}, "encode": { "update": { "opacity": {"value": 0.7}, "fill": {"value": "transparent"}, "stroke": {"scale": "color", "field": "Origin"}, "ariaRoleDescription": {"value": "point"}, "description": { "signal": "\"Miles_per_Gallon: \" + (format(datum[\"Miles_per_Gallon\"], \"\")) + \"; Horsepower: \" + (format(datum[\"Horsepower\"], \"\")) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"])" }, "x": { "scale": "child__row_Horsepowercolumn_Miles_per_Gallon_x", "field": "Miles_per_Gallon" }, "y": { "scale": "child__row_Horsepowercolumn_Miles_per_Gallon_y", "field": "Horsepower" } } } } ], "axes": [ { "scale": "child__row_Horsepowercolumn_Miles_per_Gallon_x", "orient": "bottom", "gridScale": "child__row_Horsepowercolumn_Miles_per_Gallon_y", "grid": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Horsepowercolumn_Miles_per_Gallon_y", "orient": "left", "gridScale": "child__row_Horsepowercolumn_Miles_per_Gallon_x", "grid": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Horsepowercolumn_Miles_per_Gallon_x", "orient": "bottom", "grid": false, "title": "Miles_per_Gallon", "labelFlush": true, "labelOverlap": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "zindex": 0 }, { "scale": "child__row_Horsepowercolumn_Miles_per_Gallon_y", "orient": "left", "grid": false, "title": "Horsepower", "minExtent": 30, "labelOverlap": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "zindex": 0 } ] }, { "type": "group", "name": "child__row_Horsepowercolumn_Acceleration_group", "style": "cell", "encode": { "update": { "width": {"signal": "childWidth"}, "height": {"signal": "childHeight"} } }, "signals": [ { "name": "grid_Acceleration", "on": [ { "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / childWidth)" }, { "events": {"signal": "grid_zoom_delta"}, "update": "zoomLinear(domain(\"child__row_Horsepowercolumn_Acceleration_x\"), grid_zoom_anchor.x, grid_zoom_delta)" } ], "push": "outer" }, { "name": "grid_Horsepower", "on": [ { "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_y, grid_translate_delta.y / childHeight)" }, { "events": {"signal": "grid_zoom_delta"}, "update": "zoomLinear(domain(\"child__row_Horsepowercolumn_Acceleration_y\"), grid_zoom_anchor.y, grid_zoom_delta)" } ], "push": "outer" }, { "name": "grid_tuple", "on": [ { "events": [{"signal": "grid_Acceleration || grid_Horsepower"}], "update": "grid_Acceleration && grid_Horsepower ? {unit: \"child__row_Horsepowercolumn_Acceleration\", fields: grid_tuple_fields, values: [grid_Acceleration,grid_Horsepower]} : null" } ] }, { "name": "grid_tuple_fields", "value": [ {"field": "Acceleration", "channel": "x", "type": "R"}, {"field": "Horsepower", "channel": "y", "type": "R"} ] }, { "name": "grid_translate_anchor", "value": {}, "on": [ { "events": [{"source": "scope", "type": "mousedown"}], "update": "{x: x(unit), y: y(unit), extent_x: domain(\"child__row_Horsepowercolumn_Acceleration_x\"), extent_y: domain(\"child__row_Horsepowercolumn_Acceleration_y\")}" } ] }, { "name": "grid_translate_delta", "value": {}, "on": [ { "events": [ { "source": "window", "type": "mousemove", "consume": true, "between": [ {"source": "scope", "type": "mousedown"}, {"source": "window", "type": "mouseup"} ] } ], "update": "{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}" } ] }, { "name": "grid_zoom_anchor", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "update": "{x: invert(\"child__row_Horsepowercolumn_Acceleration_x\", x(unit)), y: invert(\"child__row_Horsepowercolumn_Acceleration_y\", y(unit))}" } ] }, { "name": "grid_zoom_delta", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "force": true, "update": "pow(1.001, event.deltaY * pow(16, event.deltaMode))" } ] }, { "name": "grid_modify", "on": [ { "events": {"signal": "grid_tuple"}, "update": "modify(\"grid_store\", grid_tuple, true)" } ] } ], "marks": [ { "name": "child__row_Horsepowercolumn_Acceleration_marks", "type": "symbol", "clip": true, "style": ["point"], "interactive": true, "from": {"data": "data_1"}, "encode": { "update": { "opacity": {"value": 0.7}, "fill": {"value": "transparent"}, "stroke": {"scale": "color", "field": "Origin"}, "ariaRoleDescription": {"value": "point"}, "description": { "signal": "\"Acceleration: \" + (format(datum[\"Acceleration\"], \"\")) + \"; Horsepower: \" + (format(datum[\"Horsepower\"], \"\")) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"])" }, "x": { "scale": "child__row_Horsepowercolumn_Acceleration_x", "field": "Acceleration" }, "y": { "scale": "child__row_Horsepowercolumn_Acceleration_y", "field": "Horsepower" } } } } ], "axes": [ { "scale": "child__row_Horsepowercolumn_Acceleration_x", "orient": "bottom", "gridScale": "child__row_Horsepowercolumn_Acceleration_y", "grid": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Horsepowercolumn_Acceleration_y", "orient": "left", "gridScale": "child__row_Horsepowercolumn_Acceleration_x", "grid": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Horsepowercolumn_Acceleration_x", "orient": "bottom", "grid": false, "title": "Acceleration", "labelFlush": true, "labelOverlap": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "zindex": 0 }, { "scale": "child__row_Horsepowercolumn_Acceleration_y", "orient": "left", "grid": false, "title": "Horsepower", "minExtent": 30, "labelOverlap": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "zindex": 0 } ] }, { "type": "group", "name": "child__row_Horsepowercolumn_Horsepower_group", "style": "cell", "encode": { "update": { "width": {"signal": "childWidth"}, "height": {"signal": "childHeight"} } }, "signals": [ { "name": "grid_Horsepower", "on": [ { "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / childWidth)" }, { "events": {"signal": "grid_zoom_delta"}, "update": "zoomLinear(domain(\"child__row_Horsepowercolumn_Horsepower_x\"), grid_zoom_anchor.x, grid_zoom_delta)" } ], "push": "outer" }, { "name": "grid_tuple", "on": [ { "events": [{"signal": "grid_Horsepower"}], "update": "grid_Horsepower ? {unit: \"child__row_Horsepowercolumn_Horsepower\", fields: grid_tuple_fields, values: [grid_Horsepower]} : null" } ] }, { "name": "grid_tuple_fields", "value": [{"field": "Horsepower", "channel": "x", "type": "R"}] }, { "name": "grid_translate_anchor", "value": {}, "on": [ { "events": [{"source": "scope", "type": "mousedown"}], "update": "{x: x(unit), y: y(unit), extent_x: domain(\"child__row_Horsepowercolumn_Horsepower_x\")}" } ] }, { "name": "grid_translate_delta", "value": {}, "on": [ { "events": [ { "source": "window", "type": "mousemove", "consume": true, "between": [ {"source": "scope", "type": "mousedown"}, {"source": "window", "type": "mouseup"} ] } ], "update": "{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}" } ] }, { "name": "grid_zoom_anchor", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "update": "{x: invert(\"child__row_Horsepowercolumn_Horsepower_x\", x(unit)), y: invert(\"child__row_Horsepowercolumn_Horsepower_y\", y(unit))}" } ] }, { "name": "grid_zoom_delta", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "force": true, "update": "pow(1.001, event.deltaY * pow(16, event.deltaMode))" } ] }, { "name": "grid_modify", "on": [ { "events": {"signal": "grid_tuple"}, "update": "modify(\"grid_store\", grid_tuple, true)" } ] } ], "marks": [ { "name": "child__row_Horsepowercolumn_Horsepower_marks", "type": "symbol", "clip": true, "style": ["point"], "interactive": true, "from": {"data": "data_2"}, "encode": { "update": { "opacity": {"value": 0.7}, "fill": {"value": "transparent"}, "stroke": {"scale": "color", "field": "Origin"}, "ariaRoleDescription": {"value": "point"}, "description": { "signal": "\"Horsepower: \" + (format(datum[\"Horsepower\"], \"\")) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"])" }, "x": { "scale": "child__row_Horsepowercolumn_Horsepower_x", "field": "Horsepower" }, "y": { "scale": "child__row_Horsepowercolumn_Horsepower_y", "field": "Horsepower" } } } } ], "axes": [ { "scale": "child__row_Horsepowercolumn_Horsepower_x", "orient": "bottom", "gridScale": "child__row_Horsepowercolumn_Horsepower_y", "grid": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Horsepowercolumn_Horsepower_y", "orient": "left", "gridScale": "child__row_Horsepowercolumn_Horsepower_x", "grid": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Horsepowercolumn_Horsepower_x", "orient": "bottom", "grid": false, "title": "Horsepower", "labelFlush": true, "labelOverlap": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "zindex": 0 }, { "scale": "child__row_Horsepowercolumn_Horsepower_y", "orient": "left", "grid": false, "title": "Horsepower", "minExtent": 30, "labelOverlap": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "zindex": 0 } ] }, { "type": "group", "name": "child__row_Accelerationcolumn_Miles_per_Gallon_group", "style": "cell", "encode": { "update": { "width": {"signal": "childWidth"}, "height": {"signal": "childHeight"} } }, "signals": [ { "name": "grid_Miles_per_Gallon", "on": [ { "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / childWidth)" }, { "events": {"signal": "grid_zoom_delta"}, "update": "zoomLinear(domain(\"child__row_Accelerationcolumn_Miles_per_Gallon_x\"), grid_zoom_anchor.x, grid_zoom_delta)" } ], "push": "outer" }, { "name": "grid_Acceleration", "on": [ { "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_y, grid_translate_delta.y / childHeight)" }, { "events": {"signal": "grid_zoom_delta"}, "update": "zoomLinear(domain(\"child__row_Accelerationcolumn_Miles_per_Gallon_y\"), grid_zoom_anchor.y, grid_zoom_delta)" } ], "push": "outer" }, { "name": "grid_tuple", "on": [ { "events": [ {"signal": "grid_Miles_per_Gallon || grid_Acceleration"} ], "update": "grid_Miles_per_Gallon && grid_Acceleration ? {unit: \"child__row_Accelerationcolumn_Miles_per_Gallon\", fields: grid_tuple_fields, values: [grid_Miles_per_Gallon,grid_Acceleration]} : null" } ] }, { "name": "grid_tuple_fields", "value": [ {"field": "Miles_per_Gallon", "channel": "x", "type": "R"}, {"field": "Acceleration", "channel": "y", "type": "R"} ] }, { "name": "grid_translate_anchor", "value": {}, "on": [ { "events": [{"source": "scope", "type": "mousedown"}], "update": "{x: x(unit), y: y(unit), extent_x: domain(\"child__row_Accelerationcolumn_Miles_per_Gallon_x\"), extent_y: domain(\"child__row_Accelerationcolumn_Miles_per_Gallon_y\")}" } ] }, { "name": "grid_translate_delta", "value": {}, "on": [ { "events": [ { "source": "window", "type": "mousemove", "consume": true, "between": [ {"source": "scope", "type": "mousedown"}, {"source": "window", "type": "mouseup"} ] } ], "update": "{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}" } ] }, { "name": "grid_zoom_anchor", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "update": "{x: invert(\"child__row_Accelerationcolumn_Miles_per_Gallon_x\", x(unit)), y: invert(\"child__row_Accelerationcolumn_Miles_per_Gallon_y\", y(unit))}" } ] }, { "name": "grid_zoom_delta", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "force": true, "update": "pow(1.001, event.deltaY * pow(16, event.deltaMode))" } ] }, { "name": "grid_modify", "on": [ { "events": {"signal": "grid_tuple"}, "update": "modify(\"grid_store\", grid_tuple, true)" } ] } ], "marks": [ { "name": "child__row_Accelerationcolumn_Miles_per_Gallon_marks", "type": "symbol", "clip": true, "style": ["point"], "interactive": true, "from": {"data": "data_3"}, "encode": { "update": { "opacity": {"value": 0.7}, "fill": {"value": "transparent"}, "stroke": {"scale": "color", "field": "Origin"}, "ariaRoleDescription": {"value": "point"}, "description": { "signal": "\"Miles_per_Gallon: \" + (format(datum[\"Miles_per_Gallon\"], \"\")) + \"; Acceleration: \" + (format(datum[\"Acceleration\"], \"\")) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"])" }, "x": { "scale": "child__row_Accelerationcolumn_Miles_per_Gallon_x", "field": "Miles_per_Gallon" }, "y": { "scale": "child__row_Accelerationcolumn_Miles_per_Gallon_y", "field": "Acceleration" } } } } ], "axes": [ { "scale": "child__row_Accelerationcolumn_Miles_per_Gallon_x", "orient": "bottom", "gridScale": "child__row_Accelerationcolumn_Miles_per_Gallon_y", "grid": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Accelerationcolumn_Miles_per_Gallon_y", "orient": "left", "gridScale": "child__row_Accelerationcolumn_Miles_per_Gallon_x", "grid": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Accelerationcolumn_Miles_per_Gallon_x", "orient": "bottom", "grid": false, "title": "Miles_per_Gallon", "labelFlush": true, "labelOverlap": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "zindex": 0 }, { "scale": "child__row_Accelerationcolumn_Miles_per_Gallon_y", "orient": "left", "grid": false, "title": "Acceleration", "minExtent": 30, "labelOverlap": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "zindex": 0 } ] }, { "type": "group", "name": "child__row_Accelerationcolumn_Acceleration_group", "style": "cell", "encode": { "update": { "width": {"signal": "childWidth"}, "height": {"signal": "childHeight"} } }, "signals": [ { "name": "grid_Acceleration", "on": [ { "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / childWidth)" }, { "events": {"signal": "grid_zoom_delta"}, "update": "zoomLinear(domain(\"child__row_Accelerationcolumn_Acceleration_x\"), grid_zoom_anchor.x, grid_zoom_delta)" } ], "push": "outer" }, { "name": "grid_tuple", "on": [ { "events": [{"signal": "grid_Acceleration"}], "update": "grid_Acceleration ? {unit: \"child__row_Accelerationcolumn_Acceleration\", fields: grid_tuple_fields, values: [grid_Acceleration]} : null" } ] }, { "name": "grid_tuple_fields", "value": [{"field": "Acceleration", "channel": "x", "type": "R"}] }, { "name": "grid_translate_anchor", "value": {}, "on": [ { "events": [{"source": "scope", "type": "mousedown"}], "update": "{x: x(unit), y: y(unit), extent_x: domain(\"child__row_Accelerationcolumn_Acceleration_x\")}" } ] }, { "name": "grid_translate_delta", "value": {}, "on": [ { "events": [ { "source": "window", "type": "mousemove", "consume": true, "between": [ {"source": "scope", "type": "mousedown"}, {"source": "window", "type": "mouseup"} ] } ], "update": "{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}" } ] }, { "name": "grid_zoom_anchor", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "update": "{x: invert(\"child__row_Accelerationcolumn_Acceleration_x\", x(unit)), y: invert(\"child__row_Accelerationcolumn_Acceleration_y\", y(unit))}" } ] }, { "name": "grid_zoom_delta", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "force": true, "update": "pow(1.001, event.deltaY * pow(16, event.deltaMode))" } ] }, { "name": "grid_modify", "on": [ { "events": {"signal": "grid_tuple"}, "update": "modify(\"grid_store\", grid_tuple, true)" } ] } ], "marks": [ { "name": "child__row_Accelerationcolumn_Acceleration_marks", "type": "symbol", "clip": true, "style": ["point"], "interactive": true, "from": {"data": "data_4"}, "encode": { "update": { "opacity": {"value": 0.7}, "fill": {"value": "transparent"}, "stroke": {"scale": "color", "field": "Origin"}, "ariaRoleDescription": {"value": "point"}, "description": { "signal": "\"Acceleration: \" + (format(datum[\"Acceleration\"], \"\")) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"])" }, "x": { "scale": "child__row_Accelerationcolumn_Acceleration_x", "field": "Acceleration" }, "y": { "scale": "child__row_Accelerationcolumn_Acceleration_y", "field": "Acceleration" } } } } ], "axes": [ { "scale": "child__row_Accelerationcolumn_Acceleration_x", "orient": "bottom", "gridScale": "child__row_Accelerationcolumn_Acceleration_y", "grid": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Accelerationcolumn_Acceleration_y", "orient": "left", "gridScale": "child__row_Accelerationcolumn_Acceleration_x", "grid": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Accelerationcolumn_Acceleration_x", "orient": "bottom", "grid": false, "title": "Acceleration", "labelFlush": true, "labelOverlap": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "zindex": 0 }, { "scale": "child__row_Accelerationcolumn_Acceleration_y", "orient": "left", "grid": false, "title": "Acceleration", "minExtent": 30, "labelOverlap": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "zindex": 0 } ] }, { "type": "group", "name": "child__row_Accelerationcolumn_Horsepower_group", "style": "cell", "encode": { "update": { "width": {"signal": "childWidth"}, "height": {"signal": "childHeight"} } }, "signals": [ { "name": "grid_Horsepower", "on": [ { "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / childWidth)" }, { "events": {"signal": "grid_zoom_delta"}, "update": "zoomLinear(domain(\"child__row_Accelerationcolumn_Horsepower_x\"), grid_zoom_anchor.x, grid_zoom_delta)" } ], "push": "outer" }, { "name": "grid_Acceleration", "on": [ { "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_y, grid_translate_delta.y / childHeight)" }, { "events": {"signal": "grid_zoom_delta"}, "update": "zoomLinear(domain(\"child__row_Accelerationcolumn_Horsepower_y\"), grid_zoom_anchor.y, grid_zoom_delta)" } ], "push": "outer" }, { "name": "grid_tuple", "on": [ { "events": [{"signal": "grid_Horsepower || grid_Acceleration"}], "update": "grid_Horsepower && grid_Acceleration ? {unit: \"child__row_Accelerationcolumn_Horsepower\", fields: grid_tuple_fields, values: [grid_Horsepower,grid_Acceleration]} : null" } ] }, { "name": "grid_tuple_fields", "value": [ {"field": "Horsepower", "channel": "x", "type": "R"}, {"field": "Acceleration", "channel": "y", "type": "R"} ] }, { "name": "grid_translate_anchor", "value": {}, "on": [ { "events": [{"source": "scope", "type": "mousedown"}], "update": "{x: x(unit), y: y(unit), extent_x: domain(\"child__row_Accelerationcolumn_Horsepower_x\"), extent_y: domain(\"child__row_Accelerationcolumn_Horsepower_y\")}" } ] }, { "name": "grid_translate_delta", "value": {}, "on": [ { "events": [ { "source": "window", "type": "mousemove", "consume": true, "between": [ {"source": "scope", "type": "mousedown"}, {"source": "window", "type": "mouseup"} ] } ], "update": "{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}" } ] }, { "name": "grid_zoom_anchor", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "update": "{x: invert(\"child__row_Accelerationcolumn_Horsepower_x\", x(unit)), y: invert(\"child__row_Accelerationcolumn_Horsepower_y\", y(unit))}" } ] }, { "name": "grid_zoom_delta", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "force": true, "update": "pow(1.001, event.deltaY * pow(16, event.deltaMode))" } ] }, { "name": "grid_modify", "on": [ { "events": {"signal": "grid_tuple"}, "update": "modify(\"grid_store\", grid_tuple, true)" } ] } ], "marks": [ { "name": "child__row_Accelerationcolumn_Horsepower_marks", "type": "symbol", "clip": true, "style": ["point"], "interactive": true, "from": {"data": "data_5"}, "encode": { "update": { "opacity": {"value": 0.7}, "fill": {"value": "transparent"}, "stroke": {"scale": "color", "field": "Origin"}, "ariaRoleDescription": {"value": "point"}, "description": { "signal": "\"Horsepower: \" + (format(datum[\"Horsepower\"], \"\")) + \"; Acceleration: \" + (format(datum[\"Acceleration\"], \"\")) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"])" }, "x": { "scale": "child__row_Accelerationcolumn_Horsepower_x", "field": "Horsepower" }, "y": { "scale": "child__row_Accelerationcolumn_Horsepower_y", "field": "Acceleration" } } } } ], "axes": [ { "scale": "child__row_Accelerationcolumn_Horsepower_x", "orient": "bottom", "gridScale": "child__row_Accelerationcolumn_Horsepower_y", "grid": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Accelerationcolumn_Horsepower_y", "orient": "left", "gridScale": "child__row_Accelerationcolumn_Horsepower_x", "grid": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Accelerationcolumn_Horsepower_x", "orient": "bottom", "grid": false, "title": "Horsepower", "labelFlush": true, "labelOverlap": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "zindex": 0 }, { "scale": "child__row_Accelerationcolumn_Horsepower_y", "orient": "left", "grid": false, "title": "Acceleration", "minExtent": 30, "labelOverlap": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "zindex": 0 } ] }, { "type": "group", "name": "child__row_Miles_per_Galloncolumn_Miles_per_Gallon_group", "style": "cell", "encode": { "update": { "width": {"signal": "childWidth"}, "height": {"signal": "childHeight"} } }, "signals": [ { "name": "grid_Miles_per_Gallon", "on": [ { "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / childWidth)" }, { "events": {"signal": "grid_zoom_delta"}, "update": "zoomLinear(domain(\"child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x\"), grid_zoom_anchor.x, grid_zoom_delta)" } ], "push": "outer" }, { "name": "grid_tuple", "on": [ { "events": [{"signal": "grid_Miles_per_Gallon"}], "update": "grid_Miles_per_Gallon ? {unit: \"child__row_Miles_per_Galloncolumn_Miles_per_Gallon\", fields: grid_tuple_fields, values: [grid_Miles_per_Gallon]} : null" } ] }, { "name": "grid_tuple_fields", "value": [{"field": "Miles_per_Gallon", "channel": "x", "type": "R"}] }, { "name": "grid_translate_anchor", "value": {}, "on": [ { "events": [{"source": "scope", "type": "mousedown"}], "update": "{x: x(unit), y: y(unit), extent_x: domain(\"child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x\")}" } ] }, { "name": "grid_translate_delta", "value": {}, "on": [ { "events": [ { "source": "window", "type": "mousemove", "consume": true, "between": [ {"source": "scope", "type": "mousedown"}, {"source": "window", "type": "mouseup"} ] } ], "update": "{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}" } ] }, { "name": "grid_zoom_anchor", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "update": "{x: invert(\"child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x\", x(unit)), y: invert(\"child__row_Miles_per_Galloncolumn_Miles_per_Gallon_y\", y(unit))}" } ] }, { "name": "grid_zoom_delta", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "force": true, "update": "pow(1.001, event.deltaY * pow(16, event.deltaMode))" } ] }, { "name": "grid_modify", "on": [ { "events": {"signal": "grid_tuple"}, "update": "modify(\"grid_store\", grid_tuple, true)" } ] } ], "marks": [ { "name": "child__row_Miles_per_Galloncolumn_Miles_per_Gallon_marks", "type": "symbol", "clip": true, "style": ["point"], "interactive": true, "from": {"data": "data_6"}, "encode": { "update": { "opacity": {"value": 0.7}, "fill": {"value": "transparent"}, "stroke": {"scale": "color", "field": "Origin"}, "ariaRoleDescription": {"value": "point"}, "description": { "signal": "\"Miles_per_Gallon: \" + (format(datum[\"Miles_per_Gallon\"], \"\")) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"])" }, "x": { "scale": "child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x", "field": "Miles_per_Gallon" }, "y": { "scale": "child__row_Miles_per_Galloncolumn_Miles_per_Gallon_y", "field": "Miles_per_Gallon" } } } } ], "axes": [ { "scale": "child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x", "orient": "bottom", "gridScale": "child__row_Miles_per_Galloncolumn_Miles_per_Gallon_y", "grid": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Miles_per_Galloncolumn_Miles_per_Gallon_y", "orient": "left", "gridScale": "child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x", "grid": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x", "orient": "bottom", "grid": false, "title": "Miles_per_Gallon", "labelFlush": true, "labelOverlap": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "zindex": 0 }, { "scale": "child__row_Miles_per_Galloncolumn_Miles_per_Gallon_y", "orient": "left", "grid": false, "title": "Miles_per_Gallon", "minExtent": 30, "labelOverlap": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "zindex": 0 } ] }, { "type": "group", "name": "child__row_Miles_per_Galloncolumn_Acceleration_group", "style": "cell", "encode": { "update": { "width": {"signal": "childWidth"}, "height": {"signal": "childHeight"} } }, "signals": [ { "name": "grid_Acceleration", "on": [ { "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / childWidth)" }, { "events": {"signal": "grid_zoom_delta"}, "update": "zoomLinear(domain(\"child__row_Miles_per_Galloncolumn_Acceleration_x\"), grid_zoom_anchor.x, grid_zoom_delta)" } ], "push": "outer" }, { "name": "grid_Miles_per_Gallon", "on": [ { "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_y, grid_translate_delta.y / childHeight)" }, { "events": {"signal": "grid_zoom_delta"}, "update": "zoomLinear(domain(\"child__row_Miles_per_Galloncolumn_Acceleration_y\"), grid_zoom_anchor.y, grid_zoom_delta)" } ], "push": "outer" }, { "name": "grid_tuple", "on": [ { "events": [ {"signal": "grid_Acceleration || grid_Miles_per_Gallon"} ], "update": "grid_Acceleration && grid_Miles_per_Gallon ? {unit: \"child__row_Miles_per_Galloncolumn_Acceleration\", fields: grid_tuple_fields, values: [grid_Acceleration,grid_Miles_per_Gallon]} : null" } ] }, { "name": "grid_tuple_fields", "value": [ {"field": "Acceleration", "channel": "x", "type": "R"}, {"field": "Miles_per_Gallon", "channel": "y", "type": "R"} ] }, { "name": "grid_translate_anchor", "value": {}, "on": [ { "events": [{"source": "scope", "type": "mousedown"}], "update": "{x: x(unit), y: y(unit), extent_x: domain(\"child__row_Miles_per_Galloncolumn_Acceleration_x\"), extent_y: domain(\"child__row_Miles_per_Galloncolumn_Acceleration_y\")}" } ] }, { "name": "grid_translate_delta", "value": {}, "on": [ { "events": [ { "source": "window", "type": "mousemove", "consume": true, "between": [ {"source": "scope", "type": "mousedown"}, {"source": "window", "type": "mouseup"} ] } ], "update": "{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}" } ] }, { "name": "grid_zoom_anchor", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "update": "{x: invert(\"child__row_Miles_per_Galloncolumn_Acceleration_x\", x(unit)), y: invert(\"child__row_Miles_per_Galloncolumn_Acceleration_y\", y(unit))}" } ] }, { "name": "grid_zoom_delta", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "force": true, "update": "pow(1.001, event.deltaY * pow(16, event.deltaMode))" } ] }, { "name": "grid_modify", "on": [ { "events": {"signal": "grid_tuple"}, "update": "modify(\"grid_store\", grid_tuple, true)" } ] } ], "marks": [ { "name": "child__row_Miles_per_Galloncolumn_Acceleration_marks", "type": "symbol", "clip": true, "style": ["point"], "interactive": true, "from": {"data": "data_7"}, "encode": { "update": { "opacity": {"value": 0.7}, "fill": {"value": "transparent"}, "stroke": {"scale": "color", "field": "Origin"}, "ariaRoleDescription": {"value": "point"}, "description": { "signal": "\"Acceleration: \" + (format(datum[\"Acceleration\"], \"\")) + \"; Miles_per_Gallon: \" + (format(datum[\"Miles_per_Gallon\"], \"\")) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"])" }, "x": { "scale": "child__row_Miles_per_Galloncolumn_Acceleration_x", "field": "Acceleration" }, "y": { "scale": "child__row_Miles_per_Galloncolumn_Acceleration_y", "field": "Miles_per_Gallon" } } } } ], "axes": [ { "scale": "child__row_Miles_per_Galloncolumn_Acceleration_x", "orient": "bottom", "gridScale": "child__row_Miles_per_Galloncolumn_Acceleration_y", "grid": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Miles_per_Galloncolumn_Acceleration_y", "orient": "left", "gridScale": "child__row_Miles_per_Galloncolumn_Acceleration_x", "grid": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Miles_per_Galloncolumn_Acceleration_x", "orient": "bottom", "grid": false, "title": "Acceleration", "labelFlush": true, "labelOverlap": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "zindex": 0 }, { "scale": "child__row_Miles_per_Galloncolumn_Acceleration_y", "orient": "left", "grid": false, "title": "Miles_per_Gallon", "minExtent": 30, "labelOverlap": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "zindex": 0 } ] }, { "type": "group", "name": "child__row_Miles_per_Galloncolumn_Horsepower_group", "style": "cell", "encode": { "update": { "width": {"signal": "childWidth"}, "height": {"signal": "childHeight"} } }, "signals": [ { "name": "grid_Horsepower", "on": [ { "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / childWidth)" }, { "events": {"signal": "grid_zoom_delta"}, "update": "zoomLinear(domain(\"child__row_Miles_per_Galloncolumn_Horsepower_x\"), grid_zoom_anchor.x, grid_zoom_delta)" } ], "push": "outer" }, { "name": "grid_Miles_per_Gallon", "on": [ { "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_y, grid_translate_delta.y / childHeight)" }, { "events": {"signal": "grid_zoom_delta"}, "update": "zoomLinear(domain(\"child__row_Miles_per_Galloncolumn_Horsepower_y\"), grid_zoom_anchor.y, grid_zoom_delta)" } ], "push": "outer" }, { "name": "grid_tuple", "on": [ { "events": [ {"signal": "grid_Horsepower || grid_Miles_per_Gallon"} ], "update": "grid_Horsepower && grid_Miles_per_Gallon ? {unit: \"child__row_Miles_per_Galloncolumn_Horsepower\", fields: grid_tuple_fields, values: [grid_Horsepower,grid_Miles_per_Gallon]} : null" } ] }, { "name": "grid_tuple_fields", "value": [ {"field": "Horsepower", "channel": "x", "type": "R"}, {"field": "Miles_per_Gallon", "channel": "y", "type": "R"} ] }, { "name": "grid_translate_anchor", "value": {}, "on": [ { "events": [{"source": "scope", "type": "mousedown"}], "update": "{x: x(unit), y: y(unit), extent_x: domain(\"child__row_Miles_per_Galloncolumn_Horsepower_x\"), extent_y: domain(\"child__row_Miles_per_Galloncolumn_Horsepower_y\")}" } ] }, { "name": "grid_translate_delta", "value": {}, "on": [ { "events": [ { "source": "window", "type": "mousemove", "consume": true, "between": [ {"source": "scope", "type": "mousedown"}, {"source": "window", "type": "mouseup"} ] } ], "update": "{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}" } ] }, { "name": "grid_zoom_anchor", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "update": "{x: invert(\"child__row_Miles_per_Galloncolumn_Horsepower_x\", x(unit)), y: invert(\"child__row_Miles_per_Galloncolumn_Horsepower_y\", y(unit))}" } ] }, { "name": "grid_zoom_delta", "on": [ { "events": [{"source": "scope", "type": "wheel", "consume": true}], "force": true, "update": "pow(1.001, event.deltaY * pow(16, event.deltaMode))" } ] }, { "name": "grid_modify", "on": [ { "events": {"signal": "grid_tuple"}, "update": "modify(\"grid_store\", grid_tuple, true)" } ] } ], "marks": [ { "name": "child__row_Miles_per_Galloncolumn_Horsepower_marks", "type": "symbol", "clip": true, "style": ["point"], "interactive": true, "from": {"data": "data_8"}, "encode": { "update": { "opacity": {"value": 0.7}, "fill": {"value": "transparent"}, "stroke": {"scale": "color", "field": "Origin"}, "ariaRoleDescription": {"value": "point"}, "description": { "signal": "\"Horsepower: \" + (format(datum[\"Horsepower\"], \"\")) + \"; Miles_per_Gallon: \" + (format(datum[\"Miles_per_Gallon\"], \"\")) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"])" }, "x": { "scale": "child__row_Miles_per_Galloncolumn_Horsepower_x", "field": "Horsepower" }, "y": { "scale": "child__row_Miles_per_Galloncolumn_Horsepower_y", "field": "Miles_per_Gallon" } } } } ], "axes": [ { "scale": "child__row_Miles_per_Galloncolumn_Horsepower_x", "orient": "bottom", "gridScale": "child__row_Miles_per_Galloncolumn_Horsepower_y", "grid": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Miles_per_Galloncolumn_Horsepower_y", "orient": "left", "gridScale": "child__row_Miles_per_Galloncolumn_Horsepower_x", "grid": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "child__row_Miles_per_Galloncolumn_Horsepower_x", "orient": "bottom", "grid": false, "title": "Horsepower", "labelFlush": true, "labelOverlap": true, "tickCount": {"signal": "ceil(childWidth/40)"}, "zindex": 0 }, { "scale": "child__row_Miles_per_Galloncolumn_Horsepower_y", "orient": "left", "grid": false, "title": "Miles_per_Gallon", "minExtent": 30, "labelOverlap": true, "tickCount": {"signal": "ceil(childHeight/40)"}, "zindex": 0 } ] } ], "scales": [ { "name": "color", "type": "ordinal", "domain": { "fields": [ {"data": "data_0", "field": "Origin"}, {"data": "data_1", "field": "Origin"}, {"data": "data_2", "field": "Origin"}, {"data": "data_3", "field": "Origin"}, {"data": "data_4", "field": "Origin"}, {"data": "data_5", "field": "Origin"}, {"data": "data_6", "field": "Origin"}, {"data": "data_7", "field": "Origin"}, {"data": "data_8", "field": "Origin"} ], "sort": true }, "range": "category" }, { "name": "child__row_Horsepowercolumn_Miles_per_Gallon_x", "type": "linear", "domain": {"data": "data_0", "field": "Miles_per_Gallon"}, "domainRaw": {"signal": "grid[\"Miles_per_Gallon\"]"}, "range": [0, {"signal": "childWidth"}], "nice": true, "zero": true }, { "name": "child__row_Horsepowercolumn_Miles_per_Gallon_y", "type": "linear", "domain": {"data": "data_0", "field": "Horsepower"}, "domainRaw": {"signal": "grid[\"Horsepower\"]"}, "range": [{"signal": "childHeight"}, 0], "nice": true, "zero": true }, { "name": "child__row_Horsepowercolumn_Acceleration_x", "type": "linear", "domain": {"data": "data_1", "field": "Acceleration"}, "domainRaw": {"signal": "grid[\"Acceleration\"]"}, "range": [0, {"signal": "childWidth"}], "nice": true, "zero": true }, { "name": "child__row_Horsepowercolumn_Acceleration_y", "type": "linear", "domain": {"data": "data_1", "field": "Horsepower"}, "domainRaw": {"signal": "grid[\"Horsepower\"]"}, "range": [{"signal": "childHeight"}, 0], "nice": true, "zero": true }, { "name": "child__row_Horsepowercolumn_Horsepower_x", "type": "linear", "domain": {"data": "data_2", "field": "Horsepower"}, "domainRaw": {"signal": "grid[\"Horsepower\"]"}, "range": [0, {"signal": "childWidth"}], "nice": true, "zero": true }, { "name": "child__row_Horsepowercolumn_Horsepower_y", "type": "linear", "domain": {"data": "data_2", "field": "Horsepower"}, "range": [{"signal": "childHeight"}, 0], "nice": true, "zero": true }, { "name": "child__row_Accelerationcolumn_Miles_per_Gallon_x", "type": "linear", "domain": {"data": "data_3", "field": "Miles_per_Gallon"}, "domainRaw": {"signal": "grid[\"Miles_per_Gallon\"]"}, "range": [0, {"signal": "childWidth"}], "nice": true, "zero": true }, { "name": "child__row_Accelerationcolumn_Miles_per_Gallon_y", "type": "linear", "domain": {"data": "data_3", "field": "Acceleration"}, "domainRaw": {"signal": "grid[\"Acceleration\"]"}, "range": [{"signal": "childHeight"}, 0], "nice": true, "zero": true }, { "name": "child__row_Accelerationcolumn_Acceleration_x", "type": "linear", "domain": {"data": "data_4", "field": "Acceleration"}, "domainRaw": {"signal": "grid[\"Acceleration\"]"}, "range": [0, {"signal": "childWidth"}], "nice": true, "zero": true }, { "name": "child__row_Accelerationcolumn_Acceleration_y", "type": "linear", "domain": {"data": "data_4", "field": "Acceleration"}, "range": [{"signal": "childHeight"}, 0], "nice": true, "zero": true }, { "name": "child__row_Accelerationcolumn_Horsepower_x", "type": "linear", "domain": {"data": "data_5", "field": "Horsepower"}, "domainRaw": {"signal": "grid[\"Horsepower\"]"}, "range": [0, {"signal": "childWidth"}], "nice": true, "zero": true }, { "name": "child__row_Accelerationcolumn_Horsepower_y", "type": "linear", "domain": {"data": "data_5", "field": "Acceleration"}, "domainRaw": {"signal": "grid[\"Acceleration\"]"}, "range": [{"signal": "childHeight"}, 0], "nice": true, "zero": true }, { "name": "child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x", "type": "linear", "domain": {"data": "data_6", "field": "Miles_per_Gallon"}, "domainRaw": {"signal": "grid[\"Miles_per_Gallon\"]"}, "range": [0, {"signal": "childWidth"}], "nice": true, "zero": true }, { "name": "child__row_Miles_per_Galloncolumn_Miles_per_Gallon_y", "type": "linear", "domain": {"data": "data_6", "field": "Miles_per_Gallon"}, "range": [{"signal": "childHeight"}, 0], "nice": true, "zero": true }, { "name": "child__row_Miles_per_Galloncolumn_Acceleration_x", "type": "linear", "domain": {"data": "data_7", "field": "Acceleration"}, "domainRaw": {"signal": "grid[\"Acceleration\"]"}, "range": [0, {"signal": "childWidth"}], "nice": true, "zero": true }, { "name": "child__row_Miles_per_Galloncolumn_Acceleration_y", "type": "linear", "domain": {"data": "data_7", "field": "Miles_per_Gallon"}, "domainRaw": {"signal": "grid[\"Miles_per_Gallon\"]"}, "range": [{"signal": "childHeight"}, 0], "nice": true, "zero": true }, { "name": "child__row_Miles_per_Galloncolumn_Horsepower_x", "type": "linear", "domain": {"data": "data_8", "field": "Horsepower"}, "domainRaw": {"signal": "grid[\"Horsepower\"]"}, "range": [0, {"signal": "childWidth"}], "nice": true, "zero": true }, { "name": "child__row_Miles_per_Galloncolumn_Horsepower_y", "type": "linear", "domain": {"data": "data_8", "field": "Miles_per_Gallon"}, "domainRaw": {"signal": "grid[\"Miles_per_Gallon\"]"}, "range": [{"signal": "childHeight"}, 0], "nice": true, "zero": true } ], "legends": [ { "stroke": "color", "symbolType": "circle", "title": "Origin", "encode": { "symbols": { "update": { "fill": {"value": "transparent"}, "opacity": {"value": 0.7} } } } } ] }