Skip to main content
100%

Aditya - React D3 Conditional Line Chart Practice

✓ Published13🌍 Public
AAditya Bhattacharya
Last edited May 10, 2022
Created on May 5, 2022

A connected scatter plot renders monthly risk values from a CSV file as an SVG line chart. The D3 v6 scaleTime and scaleLinear functions map dates and values, while conditional classes color each circle marker green, amber, or red based on thresholds at 50% and 75%. The component visualizes time series data and includes dashed reference lines for these thresholds. Tooltips show exact percentages, and axes are generated using D3's tick formatting.

AI-generated description

Line chart with conditional point markers

MIT Licensed

Similar vizzes