Thanks for Dr. Curran so I can fork the code up and learn, there are some details I can not do it exactly with the code: https://heat-map.freecodecamp.rocks/, like the way shows of years and the tooltip.
The vega and vega-lite are powerfull tools to code Visualize Data, but the connection of
.x()
.fieldN('year')
.type('ordinal')
.title('years')
.sort('y'),
and
“x”: {
“timeUnit”: “yearmonth”, “field”: “date”,
“axis”: {“domain”: false, “format”: “%Y”, “tickSize”: 0}
},
is way too much unclear to me, could somebody teach me how to learn this? thanks very much!