Viewing a saved revision (read-only)
7e030d4cc05d4a40bc35f4d3051ad8a4
Vega-Lite API And Hebrew Template
This visualization uses the Vega-Lite API to render a scatter plot of the Auto MPG dataset from the UCI Machine Learning Repository, with miles per gallon reversed on the x-axis and horsepower on the y-axis. Circles are colored by country of origin and sized by vehicle weight, with tooltips showing model names. The code constructs the chart declaratively through `vega-lite-api` methods like `.markCircle()`, `.encode()`, and `.fieldQ()`, then renders it to SVG via the `vega` and `vega-lite` libraries, incorporating `vega-tooltip` for interactive hover details. Data is fetched as CSV using `d3.csv` from a GitHub 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.