routekick / calmosaic

A jQuery plugin to display a calendar heatmap like Github's contributions timeline.
https://routekick.github.io/calmosaic
MIT License
11 stars 1 forks source link

Max value gets mapped to 0 #6

Open mheberger opened 1 year ago

mheberger commented 1 year ago

In my testing, the maximum value gets incorrectly mapped to zero. Here's an example:

var data1 = [
    {date:"2023-02-18", count: 1},
    {date:"2023-02-19", count: 2},
    {date:"2023-02-20", count: 3},
    {date:"2023-02-21", count: 4},
    {date:"2023-02-22", count: 5}, 
];

$("#heatmap").calmosaic( data1, {} );
Almo7aya commented 1 year ago

@nash-ye Should we maintain this project?