Requirement
I'm trying to create a heatmap indicating the frequency of an event through the hours of the week. On the Y axis I have the days of the week and on the X axis I have the hours of the day. I want to see all the hours of the day on the X axis, even those that do not have any corresponding frequency.
Problem
Unfortunately I'm not able to find out a way to display all the hours of the day. The Crossfilter includes only the hours of the day with a corresponding frequency during the week.
Current graphic result
As you can see not all hours of the day are displayed.
Code
let name = [
'0', // S
'6', // M
'5', // T
'4', // W
'3', // T
'2', // F
'1' // S
];
this.heatmapDimension= this.data_CrossfilterObject.dimension((d) => {
return [+d.hour, d.day + '.' + name[d.day]];
});
this.heatmapGroup= this.heatmapDimension.group().reduceSum((d) => d));
this.giornoOraDashboardItem.chart
.dimension(this.heatmapDimension)
.group(this.heatmapGroup)


