Skip to main content
100%

Viewership_Cult

✓ Published0🌍 Public
HHamishWoodrow
Last edited Aug 1, 2017
Created on Aug 1, 2017

A responsive multiline chart tracks the relative popularity of four TV shows—Breaking Bad, Game of Thrones, Lost, and South Park—over time from 2004 to 2017. The chart uses d3.svg.line to render each series, with d3.scale.linear for the axes and d3.svg.axis for ticks. Clicking a legend item toggles series visibility, and the chart resizes to fit its container while updating the scales. Data comes from a CSV file and is parsed with d3.csv, with a tooltip that uses d3.svg.line for a crosshair guide.

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>

mit Licensed

Similar vizzes