bar - Basic example
✓ Published0🌍 Public
NNPashaP
Last edited Dec 15, 2016
Created on Dec 11, 2016
This example shows a basic bar chart where five data points map categorical labels (A through D) to numeric values, with all bars rendered in a uniform blue color. The visualization is generated using the viz.js library’s `viz.bar()` function, which receives the data array directly and is applied to a new SVG group element translated 50 pixels from the top-left. The underlying SVG container is selected via D3, and the chart is drawn using SVG rectangles, styled through a CSS rule that sets the fill color.
AI-generated descriptiongpl-3.0 Licensed