Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
KKazSoftwareEngineer
Last edited Jun 11, 2022
Created on Jun 7, 2022

This example displays a bar chart of temperature readings over time, with a thin bar for each timestamp and a tooltip revealing the exact temperature value. The visualization is built using the Vega-Lite API, which registers Vega and Vega-Lite libraries, and renders the chart as an SVG with an interactive tooltip from vega-tooltip. Data is loaded asynchronously from a CSV file using d3.csv, and the chart’s appearance is customized through a configuration object that adjusts axis labels and title colors. The canvas size adapts to the browser window using autosize.

AI-generated description

A 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

Similar vizzes