Merge pull request #40 from alexay7/v1-dev

Filter days with no plays from heatmap
pull/42/head
Azalea 2024-06-05 12:28:00 +08:00 committed by GitHub
commit e44188b830
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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',