Skip to main content
100%

ICE6_Yash_LineChart

✓ Published0🌍 Public
YYash Raj Mathur
Last edited Mar 9, 2026
Created on Mar 9, 2026
Forked from React & D3 Starter

This example shows annual revenue as orange bars and cost as a green line from 2015 to 2022, with a legend and axis labels for comparison. It uses d3.scaleBand for the x-axis years and d3.scaleLinear for the y-axis values, rendering SVG rectangles and a d3.line path. The data is hardcoded in the script, and the visualization is built with D3 v7 inside a plain HTML page without React integration.

AI-generated description
MIT Licensed

Similar vizzes