Releases: wa0x6e/cal-heatmap
Fix/add now without highlight
This version is bringing some minor fixes but not backward compatible.
.now
class is now applied to current time, regardless if it is highlighted or not.
If you were using the highlight functionality, the highlight.now
class is now replaced by a single highlight-now
class.
The .future
class is not applied to the current time anymore.
3.5.2
3.5.1
Add support for CommonJS
3.5.0 add support for CommonJS loader, along some bugfixes
Changelog
Allow customizing subDomain text
You can now display a more customized text inside subDomain cells, by passing a function to subDomainTextFormat
Changelog
- [fix] Fix #57 display data values in subdomain
Fix 'now' and 'highlight' classes not applied to sub domain text
Changelog
- [fix] Fix #69 the
now
andhighlight
classes are not applied to subdomain text
3.3.11
Bugfixes
Add `destroy()` method
destroy()
will remove the calendar from the DOM.
It can also takes a function as argument, that will be executed when the calendar is removed, at the end of the animation.
destroy()
always returns null
, so remember to assign it to your calendar instance, to also free the memory.
var cal = new CalHeatMap();
cal.init({}); // Creating the calendar
cal = cal.destroy(); // Remove the calendar from the DOM, and assign the 'cal' variable to `null`, avoiding memory leak
New `highlight()` method to set highlighted dates
The new highlight()
method allows you to highlight one or more dates. It accepts the same arguments as the highlight
setting inside init()
.
CSV files data can now be used directly as long as the first and second column correspond respectively to the timestamp and the value. Other structure still need some conversion works with the afterLoadDate()
callback. An example with Google Analytics CSV files is added in the documentation example section.
init()
will now throws an error for all invalid vital settings (itemSelector, domain and subDomain).
And as always, more tests and code improvement.
Changelog
- [new] Add
highlight()
method to change highlighted date after calendar initialization - [new] CSV files works out-of-the-box, as long as the first 2 columns are the timestamp and value.
- [change] Fatal errors throws errors intead of a simply console.log()
- [fix] Fix bug when trying to load plain text file as datasource
- More test and code improvement