Skip to main content
100%

Viz - Area - orient right

✓ Published0🌍 Public
NNPashaP
Last edited Jan 1, 2018
Created on Jan 1, 2018

This example shows a right-oriented area chart generated from 20 random data points. The visualization uses the `viz.area()` API from the Viz.js library, configured with `orient("right")` and a basis curve via `d3.curveBasis`. The area fills with a steelblue color in an SVG container. Data is produced by `randomData()`, which maps a range of 20 values to `{key, value}` pairs using `d3.range` and `Math.random`. The chart is rendered by calling the area generator on a selected `<g>` element.

AI-generated description
gpl-3.0 Licensed

Similar vizzes