Fork of Vega-Lite API Template
✓ Published2🌍 Public
This visualization plots automobile data from a CSV file, showing the relationship between horsepower, origin, and weight. Each point represents a vehicle, colored by weight and positioned by horsepower across different origin categories, with tooltips revealing car names. The example uses the Vega-Lite API, specifically `vl.markPoint`, `vl.x`, `vl.y`, `vl.color`, and `vl.tooltip`, to construct the specification. It loads data via d3’s `csv` function from a GitHub gist, then renders the chart as an SVG using Vega and Vega-Lite, with the final output generated through `import vega from 'vega'` and `import vegaLite from 'vega-lite'`.
AI-generated descriptionA visualization constructed using the vega-lite-api.
MIT Licensed