Skip to content

Commit 92a831b

Browse files
Copilotdanmarshall
andcommitted
Fix heatmap date positioning by removing manual scale domain and using timeUnit date instead of utcdate
Co-authored-by: danmarshall <11507384+danmarshall@users.noreply.github.com>
1 parent a84d315 commit 92a831b

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

packages/web-deploy/json/habit-tracker-complete.idoc.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -524,12 +524,9 @@
524524
"encoding": {
525525
"x": {
526526
"field": "date",
527-
"timeUnit": "utcdate",
527+
"timeUnit": "date",
528528
"type": "ordinal",
529529
"title": "Day of Month",
530-
"scale": {
531-
"domain": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]
532-
},
533530
"axis": {
534531
"labelAngle": 0,
535532
"format": "%e"
@@ -580,20 +577,17 @@
580577
"encoding": {
581578
"x": {
582579
"field": "date",
583-
"timeUnit": "utcdate",
580+
"timeUnit": "date",
584581
"type": "ordinal",
585582
"title": "Day of Month",
586-
"scale": {
587-
"domain": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]
588-
},
589583
"axis": {
590584
"labelAngle": 0,
591585
"format": "%e"
592586
}
593587
},
594588
"y": {
595589
"field": "date",
596-
"timeUnit": "utcmonth",
590+
"timeUnit": "month",
597591
"type": "ordinal",
598592
"title": "Month",
599593
"axis": {

0 commit comments

Comments
 (0)