d3.js visualization of a calendar heatmap.
A new layout compared with the original d3.js calendar. The visualization in this repository is better suited for data that span over a couple years, as opposed to decades.
d3.js visualization of a calendar heatmap.
A new layout compared with the original d3.js calendar. The visualization in this repository is better suited for data that span over a couple years, as opposed to decades.
var flights = $("div:contains('Best flights'):last").parent().children(); | |
if (flights.length === 0) { | |
flights = $("div:contains('Choose an outbound'):last").parent().parent().children()[1]; | |
flights = $($(flights).children()[0]).children(); | |
} | |
var avg_time = 0; | |
var avg_price = 0; | |
flights.toArray().forEach(function (elm, ind, arr) { | |
if ($(elm).attr("iti") != undefined) { |