// source http://jsbin.com/sivozey
✓ Published0🌍 Public
MMTClass
Last edited Feb 28, 2017
Created on Feb 28, 2017
This example demonstrates a time-series chart with an accompanying legend, built using D3.js v4 and rendered as SVG. It sets up a time-scaled x-axis, a linear y-axis, and an ordinal color scale using `d3.scaleOrdinal` with the `d3.schemeCategory10` palette. The code attaches a legend group to the SVG, positioning it with a translation and calling a `d3.legend` function, though the underlying data and full legend implementation are not visible. The chart uses margins and a nested group to structure the plot area.
AI-generated description