Vega-Lite API Template subGuy
✓ Published0🌍 Public
This example uses the Vega-Lite API to render a GDP bar chart, displaying the raw data from the freeCodeCamp ProjectReferenceData repository. The visualization plots the data’s first field on the x-axis and the second on the y-axis, with tooltips showing the value. The chart is built with `vega-lite-api` and `vl.markBar()`, and configured with custom guide-label and guide-title styles from a `config.js` file. The visualization is rendered to SVG via `vega` and `vega-lite`, using `vega-tooltip` for interactivity, and it is sized to fit the browser window with `window.innerWidth` and `window.innerHeight`.
AI-generated descriptionAn example starting point for working with Vega-Lite-API
MIT Licensed