Skip to main content
100%

Prosty wykres liniowy

✓ Published1🌍 Public
Jjwr2023
Last edited Nov 3, 2023
Created on Nov 3, 2023
Forked from AI1.02.11

This example demonstrates a simple line chart plotting five data points with x-values from 0 to 4 and corresponding y-values. The visualization uses D3 version 6 to create an SVG rendering, featuring a steelblue line with axes labeled on the left and bottom. The code constructs the chart by applying `d3.scaleLinear` for both x and y axes, using `d3.extent` and `d3.max` to determine domains, and generates the line via `d3.line`. Axis labels are added with text elements, and the y-axis is rotated to display "Wartość".

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes