Skip to main content
100%

Untitled

✓ Published0🌍 Public
KKrishnaVamsi09
Last edited Apr 30, 2020
Created on Mar 30, 2020
Forked from Hello VizHub

This example shows a dataset of ten groups labeled A through J, each with two numeric variables, rendered as a horizontal bar chart. The visualization uses the D3.js library, with `d3.scaleBand` mapping the categorical groups to the x-axis and `d3.scaleLinear` mapping the numeric `var1` values to the bar lengths (the `var2` column is loaded but not displayed). The SVG-based chart is generated by `index.html` and styled with `style.css`, with chart dimensions and margins defined inline; the bars are drawn using `d3.shape` rectangles, and axis ticks are labeled via `d3.axisBottom`. The data is read from the `data.csv` file asynchronously.

AI-generated description
MIT Licensed

Similar vizzes