New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only two years data back is showed #13
Comments
Hi Alberto, I'm glad you find the plugin useful thanks for reporting the issue. I will take a look and see if I can fix the issue within the next couple of days. Please let me know if you can narrow down the issue. Best |
Hi Sebastian,
|
I'm glad you found a solution that works for you, but I will definitely look into why it is not working properly. I will keep you posted |
OK, I published a new release that should take care of the issue. Please note, that moment.js is also no longer required. Please let me know if it works for you. Best |
Hi Sebastian, The data: The result (please note I changed the default colour for the no-data to red). 2012 should be full with green rather than red. |
Okay, let's figure this one out... I wonder if it is a css issue? Please find the styles I used below. I used the same files (non minified version). I was not 100% sure if the click event is the issue, but I checked and on my end it seems, it is not. .ch-day, .custom-0 {
background-color: #FB0006 !important;
}
.ch-day.is-outside-month {
background-color: transparent !important;
}
.custom-1 {
background-color: #FD940A !important;
}
.custom-2 {
background-color: #FFFF0B !important;
}
.custom-3 {
background-color: #22FF08 !important;
}
.custom-4 {
background-color: #387C03 !important;
} |
It gets more interesting: the minified js works, the other one does not. |
hm, that is strange indeed. I have no idea why this would happen. I will investigate. what os/browser are you using, perhaps that is giving us a clue? |
Hi,
Thanks for the plugging, really useful.
When trying to load data bigger than 2 years (let us say 3-4 years) just the last two years or less are loaded, see example below:
Data: data from 2012 to 2015 (below just a subset of the data as the list is too long):
oblist = [{"count":100,"date":"2012-01-01"},{"count":100,"date":"2012-01-02"},{"count":100,"date":"2012-01-03"},{"count":100,"date":"2012-01-04"},{"count":100,"date":"2012-01-05"},{"count":100,"date":"2012-01-06"},{"count":100,"date":"2012-01-07"},..., ,{"count":100,"date":"2015-12-01"}];
$("#calendar2011").CalendarHeatmap(oblist, { months: 50, coloring:"custom", // weekStartDay: 1, lastMonth:12, lastYear:2015, labels: { days: false, months: true, custom: { weekDayLabels: null, monthLabels: 'MMM-YY' } }, tiles: { shape:"square" } });
This is what I get:
As you can see data before Jan-14 is not showed.
I tested with diferent data and always got the same behaviour.
Thanks,
Alberto.
The text was updated successfully, but these errors were encountered: