Prosty wykres liniowy
✓ Published1🌍 Public
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 descriptionA demonstration of how to start using D3 version 6.
MIT Licensed