Viz - Area - defined
✓ Published0🌍 Public
NNPashaP
Last edited Jan 1, 2018
Created on Jan 1, 2018
This example displays a stepped area chart where gaps in the line appear wherever a data point is null, using a random dataset generated inline. The code builds the visualization with the Viz.js library’s `viz.area()` function, passing a `.defined()` callback to skip null values, and renders it as an SVG within a `g` element. The chart is styled with a steel blue fill, and the data generation uses `d3.range()` and `Math.random()` to produce twenty points.
AI-generated descriptiongpl-3.0 Licensed