Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Viewing a saved revision (read-only)

24e8c3fce23c4f35ae452ede542ad969

Making a bar chart

0 stars0🌍 Public
AAlain Jennotte
Last edited Jun 11, 2019
Created on Jun 11, 2019
Forked from Making a bar chart

A bar chart displays the GDP of ten countries, with countries on the y-axis and GDP values on the x-axis. The chart uses d3.scaleLinear for the x-scale and d3.scalePoint for the y-scale, rendering circles instead of bars via SVG. Axes are generated with d3.axisLeft and d3.axisBottom, while GDP labels are formatted using d3.format with a custom tick format. Data is loaded from a CSV file using d3.csv, and the visualization is styled with CSS for tick text and axis labels.

AI-generated description

Making a scatter plot