src/charts/heatmap.js
function drawDayLabels() {
            let dayLabelsGroup = svg.select('.day-labels-group');

            dayLabels = svg.select('.day-labels-group').selectAll('.day-label')
                .data(daysHuman);

            dayLabels.enter()
              .append('text')
                .text((label) => label)
                .attr('x', 0)
                .attr('y', (d, i) => i * boxSize)
                .style('text-anchor', 'start')
                .style('dominant-baseline', 'central')
                .attr('class', 'day-label');

            dayLabelsGroup.attr('transform', `translate(-${dayLabelWidth}, ${boxSize / 2})`);
        }
function drawDayLabels() {
            let dayLabelsGroup = svg.select('.day-labels-group');

            dayLabels = svg.select('.day-labels-group').selectAll('.day-label')
                .data(daysHuman);

            dayLabels.enter()
              .append('text')
                .text((label) => label)
                .attr('x', 0)
                .attr('y', (d, i) => i * boxSize)
                .style('text-anchor', 'start')
                .style('dominant-baseline', 'central')
                .attr('class', 'day-label');

            dayLabelsGroup.attr('transform', `translate(-${dayLabelWidth}, ${boxSize / 2})`);
        }
function drawDayLabels ( ) { let dayLabelsGroup = svg . select ( '.day-labels-group' ) ; dayLabels = svg . select ( '.day-labels-group' ) . selectAll ( '.day-label' ) . data ( daysHuman ) ; dayLabels . enter ( ) . append ( 'text' ) . text ( ( label ) => label ) . attr ( 'x' , 0 ) . attr ( 'y' , ( d , i ) => i * boxSize ) . style ( 'text-anchor' , 'start' ) . style ( 'dominant-baseline' , 'central' ) . attr ( 'class' , 'day-label' ) ; dayLabelsGroup . attr ( 'transform' , ` ${ dayLabelWidth } ${ boxSize / 2 } ` ) ; }
Draws the day labels
Draws the day labels