Fork of Vega-Lite API Template
✓ Published0🌍 Public
This visualization presents a density plot of automobile horsepower over time, using a filled line mark with 10% opacity to reveal overlapping data patterns. The visualization is built with the Vega-Lite API, where the visualization specification is defined declaratively in `viz.js` using functions like `markLine` and `encode`, then rendered to SVG via the Vega view system. Data is loaded asynchronously from a CSV file containing auto-mpg records using d3.csv, with mouse interactions handled through Vega Tooltip. The chart dimensions dynamically adapt to the browser window, and the axis styling is customized through a shared configuration object.
AI-generated descriptionA visualization constructed using the vega-lite-api.
MIT Licensed