Fork of Aditya - React D3 Conditional Line Chart Practice
✓ Published0🌍 Public
AAbdouEnsaj
Last edited Oct 31, 2022
Created on Oct 31, 2022
A React and D3 line chart visualizes risk values over time, with each data point colored conditionally by its value: green below 50, amber between 50 and 75, and red above 75. The line connects monthly data from a CSV file, while dashed threshold lines mark the 50 and 75 percent boundaries. The chart uses `scaleTime` and `scaleLinear` for axes, `d3.line` for the path, and SVG `<circle>` elements with hover tooltips showing formatted percentage values.
AI-generated descriptionLine chart with conditional point markers
MIT Licensed