bar - valuePrimary
✓ Published0🌍 Public
NNPashaP
Last edited Dec 15, 2016
Created on Dec 11, 2016
This example demonstrates how the `viz.bar` chart from the Viz.js library (v1.1.7) renders a simple grouped bar chart from an in-memory array of categorical data. Two side-by-side SVG groups show the default rendering on the left and a custom version on the right, where the `valuePrimary` function appends a percent sign to each bar’s label. The chart uses D3 v4 for selection and SVG creation, with bars filled in blue and outlined in black. The custom configuration highlights how label formatting can be altered without changing the underlying data or layout.
AI-generated descriptiongpl-3.0 Licensed