Bagaski's Fork of Vega-Lite API Template
✓ Published0🌍 Public
This example uses Vega-Lite API to create a scatter plot of Automobile MPG data from the UCI Machine Learning Repository. The visualization displays vehicles as points, mapping year to the x-axis, origin to the y-axis, and weight to point size, with color encoding origin. It uses `vl.markPoint`, `vl.x()`, `vl.y()`, `vl.color()`, `vl.size()`, and `vl.tooltip()` to construct the chart, rendered as SVG via the `vega` and `vega-lite` libraries. The code customizes axis and label styling through a config object, and loads data with `d3.csv` from a remote Gist.
AI-generated descriptionA visualization constructed using the vega-lite-api.
The data shown here comes from the UCI Machine Learning Repository: Auto MPG Data Set, via Gist: Scatter Plot with Menus.
MIT Licensed