d3.js line graph with dual Y axes
✓ Published0🌍 Public
Dd3noob
Last edited Nov 30, 2019
Created on Jun 21, 2014
This example shows two time-series lines—one for closing values and one for opening values—plotted against a shared time axis but with separate y scales on the left and right sides. The SVG graphic uses D3.js version 3.5.17 with `d3.time.scale`, `d3.scale.linear`, and `d3.svg.axis` to render the axes and lines, while `d3.csv` loads the date-stamped data from a local CSV file. The left axis and blue line correspond to the close column, and the right axis and red line correspond to the open column, making it easy to compare trends across different value ranges.
AI-generated descriptionmit Licensed