Skip to main content
100%

Reusable Line Chart VK

✓ Published0🌍 Public
KKacieW
Last edited May 18, 2018
Created on May 18, 2018

This chart displays four time-series variables from a CSV dataset, plotted over a shared x-axis of years where each line is color-coded and can be toggled on or off by clicking legend markers. Built with D3 v3, the SVG rendering is fully responsive, resizing with the browser window while custom margins, axis labels, and chart dimensions are configurable. The implementation uses D3’s `d3.scale.category10` for automatic color assignment, `d3.bisector` for data interpolation, and `d3.csv` for data ingestion. Animated tooltips highlight data points on hover, while the layout adapts via CSS media queries.

AI-generated description

An implementation of a reusable responsive multiline chart. Based on the concept outlined in Mike Bostocks blog post Towards Reusable Charts.

Features:

  • Reusable modular design
  • Responsive design, chart size adjusts with screen size
  • Customizable options
    • Chart Size
    • Margins
    • Div Selector
    • Chart Colors
    • Axis labels
  • Toggleable series (click on the legend to toggle series)

Previous version: Reusable Responsive Multiline Chart

forked from <a href='http://bl.ocks.org/asielen/'>asielen</a>'s block: <a href='http://bl.ocks.org/asielen/50a527004cb79facf219'>Reusable Line Chart v2</a>

forked from <a href='http://bl.ocks.org/niila/'>niila</a>'s block: <a href='http://bl.ocks.org/niila/f4487e1c73571859ee835660e3ffe3a0'>Reusable Line Chart v2</a>

forked from <a href='http://bl.ocks.org/niila/'>niila</a>'s block: <a href='http://bl.ocks.org/niila/3a8e043eb80eb02ccac12c8292f91aeb'>Reusable Line Chart VK</a>

forked from <a href='http://bl.ocks.org/niila/'>niila</a>'s block: <a href='http://bl.ocks.org/niila/193a3428e5ebeb5fd04275286a8c0ab6'>Reusable Line Chart VK</a>

mit Licensed

Similar vizzes