Vega-Lite API Template
✓ Published0🌍 Public
This example demonstrates a bar chart that visualizes the relationship between automobile model year and horsepower, colored by country of origin. Built with the Vega-Lite API, it uses `vl.markBar()` to encode data through the `vl.x()`, `vl.y()`, `vl.color()`, and `vl.tooltip()` channels. The visualization loads automotive data from a CSV file via `d3.csv`, and integrates with `vega-tooltip` for interactive hover details, with custom styling applied through a configuration object.
AI-generated descriptionA visualization constructed using the vega-lite-api.
MIT Licensed