Fork of Line Chart
✓ Published2🌍 Public
This example visualizes annual sales data as a red line chart, with a time-scaled x-axis for years and a linear y-axis for sales values. It uses D3 v5’s `scaleTime`, `scaleLinear`, `axisBottom`, `axisLeft`, and `line` generators to render an SVG inside a React project, reading CSV data from a GitHub gist. The chart includes labeled axes, gridlines via tick sizing, and a rotated y-axis label, with styling defined in an external CSS file.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed