Published
Edited
Sep 23, 2019
2 forks
6 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
drawchart = calendarHeatmap.drawChart = function () {
if (calendarHeatmap.overview === 'global') {
calendarHeatmap.drawGlobalOverview();
} else if (calendarHeatmap.overview === 'year') {
calendarHeatmap.drawYearOverview();
} else if (calendarHeatmap.overview === 'month') {
calendarHeatmap.drawMonthOverview();
} else if (calendarHeatmap.overview === 'week') {
calendarHeatmap.drawWeekOverview();
} else if (calendarHeatmap.overview === 'day') {
calendarHeatmap.drawDayOverview();
}
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

settings = calendarHeatmap.settings = ({
gutter: 0.05,
item_gutter: 0.15,
width: 1000,
height: 200,
item_size: 10,
label_padding: 40,
max_block_height: 20,
transition_duration: 500,
tooltip_width: 250,
tooltip_padding: 15,
futureColor:'#8c2d04',
pastColor:'#005a32',
todayColor:'#3182bd'
});
Insert cell
Insert cell
Insert cell
moment = require("https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment.min.js");
Insert cell
d3 = require("https://d3js.org/d3.v5.min.js")
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more