Skip to main content
100%

d3 mouseover multi-line chart

✓ Published0🌍 Public
ZZoeLeBlanc
Last edited Jul 13, 2018
Created on Jul 10, 2018

This interactive multi-line chart displays temperature data for New York, San Francisco, and Austin over time, using a time-scaled x-axis and linear y-axis. The visualization renders three colored lines with a legend and city labels, using SVG paths generated by `d3.svg.line` with basis interpolation. A black vertical guide line follows the mouse across the chart, with the code also setting up per-line mouseover effects to highlight individual data series. The data is parsed from a tab-separated string using `d3.tsv.parse`, with scales and axes built via d3.time.scale, d3.scale.linear, and d3.svg.axis.

AI-generated description

An interactive multi-line chart.

Note, I borrowed a bit of code from Duopixel's excellent code sample here.

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/larsenmtl/'>larsenmtl</a>'s block: <a href='http://bl.ocks.org/larsenmtl/e3b8b7c2ca4787f77d78f58d41c3da91'>d3 mouseover multi-line chart</a>

mit Licensed

Similar vizzes