mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 00:27:26 +08:00
Filter days with no plays from heatmap
This commit is contained in:
@@ -95,7 +95,7 @@ export function renderCal(el: HTMLElement, d: { date: any, value: any }[]): Prom
|
|||||||
radius: 2, width: 11, height: 11, gutter: 4
|
radius: 2, width: 11, height: 11, gutter: 4
|
||||||
},
|
},
|
||||||
range: 12,
|
range: 12,
|
||||||
data: { source: d, x: 'date', y: 'value' },
|
data: { source: d.filter(x => x.value > 0), x: 'date', y: 'value' },
|
||||||
scale: {
|
scale: {
|
||||||
color: {
|
color: {
|
||||||
type: 'linear',
|
type: 'linear',
|
||||||
|
|||||||
Reference in New Issue
Block a user