Fork of Vega-Lite API Template
✓ Published0🌍 Public
This example visualizes New York state unemployment rates from 1976 to 2020 using a line chart, with the data sourced from a CSV file linked in the code. It builds the visualization with the Vega-Lite API, registering Vega, Vega-Lite, and the tooltip handler in `index.js`. The `viz.js` file defines the line mark, encoding year on the x-axis and New York unemployment on the y-axis, while `config.js` customizes axis and label styling. Data is loaded via `d3.csv` in `getData.js`, and the chart is rendered as an SVG fitted to the window size.
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