Skip to main content
100%

Viz - Line - orient - top

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

This example shows a small line chart of four data points, with each point positioned along the x-axis by its `key` value and the line's height determined by its `value`. The chart is rendered as an SVG inside an HTML page, using the D3.js library in version 4 and the Viz.js framework. The code calls the `viz.line()` function, passing the dataset and setting the `orient("top")` option, which places the line’s baseline at the top of the chart area. The line itself is styled with a steelblue stroke via the provided CSS class.

AI-generated description
gpl-3.0 Licensed

Similar vizzes