DecemberCafeChap5Chap6
✓ Published0🌍 Public
AAlsaxian
Last edited Nov 14, 2017
Created on Nov 14, 2017
This example shows two D3.js visualizations in a single page. The first is a basic histogram with five steel-blue rectangles, each with a width proportional to a data value. The second chart displays dark-blue bars whose widths are mapped through a linear scale, created with `d3.scaleLinear`, from a small dataset. The code also demonstrates the use of `d3.min`, `d3.max`, and `d3.scaleOrdinal` for color mapping, though the ordinal scale is not directly applied to the rendered bars. Both charts are drawn as SVGs, generated from hardcoded arrays in the script.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed