{ "height": 300, "mark": "circle", "data": { "url": "https://vega.github.io/vega-lite/data/cars.json" }, "width": 300, "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "encoding": { "color": { "field": "Origin", "type": "nominal", "legend": { "labelOpacity": 0.6, "cornerRadius": 5, "symbolStrokeColor": null, "fillColor": "pink", "labelOverlap": "greedy", "rowPadding": 15, "labelColor": "fireBrick", "titlePadding": 20, "symbolStrokeWidth": 1, "labelFontWeight": 600, "labelBaseline": "top", "labelFontSize": 20, "labelAlign": "right", "padding": 30, "strokeColor": "orange" } }, "size": { "field": "Horsepower", "type": "quantitative", "legend": { "labelOpacity": 0.6, "cornerRadius": 5, "symbolStrokeColor": null, "fillColor": "pink", "labelOverlap": "greedy", "rowPadding": 15, "labelColor": "fireBrick", "titlePadding": 20, "symbolStrokeWidth": 1, "labelFontWeight": 600, "labelBaseline": "top", "labelFontSize": 20, "labelAlign": "right", "padding": 30, "strokeColor": "orange" } }, "opacity": { "field": "Weight_in_lbs", "type": "quantitative", "legend": { "labelOpacity": 0.6, "cornerRadius": 5, "symbolStrokeColor": null, "fillColor": "pink", "labelOverlap": "greedy", "rowPadding": 15, "labelColor": "fireBrick", "titlePadding": 20, "symbolStrokeWidth": 1, "labelFontWeight": 600, "labelBaseline": "top", "labelFontSize": 20, "labelAlign": "right", "padding": 30, "strokeColor": "orange" } }, "x": { "field": "Horsepower", "type": "quantitative" }, "y": { "field": "Miles_per_Gallon", "type": "quantitative" } } }