Skip to main content
100%

A year of weekly running mileage

✓ Published0🌍 Public
TThanaporn-sk
Last edited Oct 11, 2017
Created on Oct 11, 2017

A radial heat-histogram visualizes a year of weekly running mileage, using color-coded arcs to distinguish low, middle, and high distance zones based on adjustable threshold sliders. The underlying masked SVG paths are redrawn and selectively colored as thresholds change, while yellow and blue bars represent individual run distance and elevation, with hover tooltips for details. The code uses d3.v4 with moment.js and moment-range for date handling, and d3.json to load the run data from a gist.

AI-generated description

Note: still a work in progress

In his heat-histogram, Adam Pierce shows how using masks lets you draw an area with multiple colors using just one path.

Here this method is applied to explore the weekly mileage I ran in 2014. Instead of updating the mask itself like in Adam's bl.ocks, the underlying masked paths are redrawn depending on the threshold values from the inputs, so the path can be selectively colored.

The bars are the distance (yellow) and elevation (blue) of the individual runs, hover on them to get more details.

forked from <a href='http://bl.ocks.org/gcalmettes/'>gcalmettes</a>'s block: <a href='http://bl.ocks.org/gcalmettes/0ab8e8e1c64fa07e5fe62ae606624cb6'>A year of weekly running mileage</a>

mit Licensed

Similar vizzes