Skip to main content
100%

Greenhouse Gas Producers - Bar Graph

✓ Published0🌍 Public
Hhagerka
Last edited Jun 2, 2022
Created on Jun 2, 2022

This visualization presents a bar graph of greenhouse gas emissions by state for the year 2020, with each bar segmented by facility name and interactive tooltips revealing facility details. The chart uses the Vega-Lite API, built with `vl.markRect()` and encoding functions for the x-axis state field, y-axis emissions quantity, and color mapping by facility. Data is fetched asynchronously via D3’s `csv()` from a GitHub Gist, while the Vega tooltip handler and custom config adjust axis styling and text colors for improved readability.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes