Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart

Public visualization

Viewing a saved revision (read-only)

c93691f2329e4c26ab9ce001cd8d29c2

Bar Chart

0 stars1🌍 Public
MMert Gürkan
Last edited Feb 16, 2021
Created on Jul 14, 2020
Forked from moodchange

A bar chart displays dummy data with nine index-value pairs, using a linear color scale for fill intensity so higher values appear darker blue. The chart renders bars in an SVG, with a quantitative x-axis and categorical y-axis, and includes titles and gridlines. The implementation uses d3.csv to load data, d3.scaleLinear for both the color interpolation and x-axis domain, d3.scaleBand for the y-axis, and d3.axisLeft and d3.axisBottom with tick formatting for readable labels.

AI-generated description

a bar chart w/ dummy data

used scaleLinear for color interpolation so that the data instances with higher values are colored in darker blue