mirror of https://github.com/hykilpikonna/AquaDX
Filter days with no plays from heatmap
parent
f6d55fec35
commit
c5d81afdf6
|
@ -95,7 +95,7 @@ export function renderCal(el: HTMLElement, d: { date: any, value: any }[]): Prom
|
|||
radius: 2, width: 11, height: 11, gutter: 4
|
||||
},
|
||||
range: 12,
|
||||
data: { source: d, x: 'date', y: 'value' },
|
||||
data: { source: d.filter(x => x.value > 0), x: 'date', y: 'value' },
|
||||
scale: {
|
||||
color: {
|
||||
type: 'linear',
|
||||
|
|
Loading…
Reference in New Issue