Dual axes in v5
A dual-axis line chart plots two time series from a CSV file, with one line in steel blue and another in red, each paired to its own y-axis. The example uses D3 v4 with `d3.scaleTime`, `d3.scaleLinear`, `d3.line`, and `d3.axisBottom`, `d3.axisLeft`, and `d3.axisRight` to render an SVG. The steel-blue axis appears on the left, the red axis on the right, and both lines share a common time-based x-axis. The styling is driven by CSS classes for axis text colors, as shown in the index.html file.
AI-generated descriptionThis is a multiple line graph demonstrating the display of seperate colour coded y axes for each line. This was written using d3.js v4 and is a follow on to the multiple line graph example here.
This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 4 of d3.js.