Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

A6 DIVERGING BAR CHART

Public visualization

Viewing a saved revision (read-only)

b93bea334f214f86b774a11ceb565f4e

A6 DIVERGING BAR CHART

0 stars1🌍 Public
SShazil Taqi
Last edited Mar 27, 2024
Created on Mar 27, 2024
Forked from A6 BAR CHART

This diverging bar chart compares monthly crude oil and natural gas prices over time, with blue bars extending to the right for natural gas and red bars to the left for crude oil. It uses a shared baseline at the center of the chart to emphasize the relative magnitude and divergence between the two commodities across dates. The visualization is built with D3.js v7, employing linear scales for both axes, a band scale for the categorical date axis, and SVG rectangles for rendering. Data is loaded as CSV from a remote GitHub gist.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.