This example illustrates this GeoExamples blog entry.
The map shows the track of the Hayian typhoon, that hit Phillipines on November 2013.
The gradient code is taken from Mike Bostock's example Gradient Along Stroke
Modified http://d3js.org/d3.v3.min.js to a secure url
Modified http://d3js.org/topojson.v1.min.js to a secure url
Modified http://d3js.org/colorbrewer.v1.min.js to a secure url
Changed /mbostock/raw/4090846/world-50m.json to a local referenece
https://d3js.org/d3.v3.min.js
https://d3js.org/topojson.v1.min.js
https://d3js.org/colorbrewer.v1.min.js