cal-heatmap

Cal-Heatmap is a javascript charting library to create a time-series calendar heatmap

MIT License

Downloads
32.3K
Stars
2.7K
Committers
28

Bot releases are hidden (Show)

cal-heatmap - Fix/add now without highlight

Published by wa0x6e over 8 years ago

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.

cal-heatmap -

Published by wa0x6e over 9 years ago

Fix issue where the empty option in legendColors does not properly target dates with null as value

Changelog

  • [fix] Fix #74: Let empty target cells with no data
cal-heatmap -

Published by wa0x6e over 9 years ago

Some CSS fixes

Changelog

  • [fix] Fix #97 Make "class" of all elements more dedicated
  • [fix] Fix #93 Tooltip position due to legendOffset and domainLabel
  • [fix] Fix #89 Add a .future class to future subdomain cells
  • [fix] Fix false error output when no callback passed to destroy()
cal-heatmap - Allow customizing subDomain text

Published by wa0x6e almost 10 years ago

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
cal-heatmap - Add support for CommonJS

Published by wa0x6e almost 10 years ago

3.5.0 add support for CommonJS loader, along some bugfixes

Changelog

  • [fix] Fix #84 Fixing highlighting for week subdomain (Dominic Barnes)
  • [new] Fix #85 Adding some CommonJS as well as Component support (Dominic Barnes)
  • [fix] Fix #107 Fix connectors for week/month/year (Andreas Jaggi)
  • [change] Use NPM to install jquery and qunit dev dependencies
cal-heatmap - Fix 'now' and 'highlight' classes not applied to sub domain text

Published by wa0x6e over 10 years ago

Changelog

  • [fix] Fix #69 the now and highlight classes are not applied to subdomain text
cal-heatmap -

Published by wa0x6e over 10 years ago

Changelog

  • [new] Only consider entries less than now (in the subdomain) as zero, when considering null as zero (Peter Schwarz)
  • [change] Remove sourcemaps comment in js
cal-heatmap - Bugfixes

Published by wa0x6e almost 11 years ago

Changelog

  • [fix] Fix #58 Legend colors are shifted
  • [fix] Fix #62 Bug when calendar container already have a style attribute
cal-heatmap - Add `destroy()` method

Published by wa0x6e almost 11 years ago

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
cal-heatmap - New `highlight()` method to set highlighted dates

Published by wa0x6e about 11 years ago

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
cal-heatmap - Increase d3 version dependency

Published by wa0x6e about 11 years ago

cal-heatmap - Add tooltip

Published by wa0x6e about 11 years ago

Enable tooltip on date hover by setting tooltip to true, on init().

cal-heatmap - Dynamic legend colors and more navigation options

Published by wa0x6e about 11 years ago

The 3.3.0 release offers more control on the legend settings and domain scrolling.

Legend

Legend can now be added or removed after initialization.
In addition, all legend settings can be edited dynamically.

Check the legend playground in the documentation.

  • A new legendColors setting was added to generate the heatmap colors dynamically, by interpolating a min and max colors.
  • Legend can now be rotated (90 deg only).

Domain scrolling

next() and previous() methods now takes an optional argument, specifying the number of domains to scroll.

A new jumpTo(date) is available, in case you want to jump directly to a specific date.

Layout

rowLimit and colLimit setting has been added, to control the rows and columns number in a domain. Only use one, colLimit will always take precedence over rowLimit if both are present.

Changelog

  • [new] Add jumpTo() method to scroll the calendar to the specified date
  • [new] setLegend() will redraw the legend if some of its settings (cellSize/padding, position, etc ...) were changed
  • [new] Add legendColors setting, to dynamically control the heatmap colors
  • [new] Add showLegend() and removeLegend() methods
  • [new] next() and previous() now takes an argument, to scroll multiple domains at once
  • [new] Add legendOrientation setting
  • [new] Add rowLimit and colLimit setting to control the number of columns and rows in a domain
  • [fix] Fix #37: two days get summed
  • [change] All invalid data (not a number) will be ignored
  • [change] setLegend() now takes a legend threshold array as first argument, and a color array as second argument
cal-heatmap - Fix #35

Published by wa0x6e about 11 years ago

Can't load new domain with next() when the new domain's timestamp contains more character

cal-heatmap - More control on domain label

Published by wa0x6e about 11 years ago

Add setting to not paint domain label, and control its height

cal-heatmap - New setLegend() method

Published by wa0x6e about 11 years ago

Add setLegend() method to redefine legend threshold and other bugfixes

cal-heatmap - New considerMissingDataAsZero option

Published by wa0x6e about 11 years ago

The considerMissingDataAsZero is used when you want the dates that are not associated to any values to behave like if they're associated to the value 0.

Useful when your API is not returning data for dates with value 0, to save space.

cal-heatmap - new Update() method

Published by wa0x6e about 11 years ago

Add update() method to update calendar's data.

update takes 3 arguments :

  • data
  • afterLoad
  • updateMethod

update() can update the calendar in 3 different ways :

  • reload the entire calendar with a new set of data
  • replace a set of dates by their new values
  • increment a set of dates by their new values

Check the documentation for usage.

cal-heatmap - Minor bugfixes

Published by wa0x6e about 11 years ago

  • [fix] Fix domain month class (m_x) beginning at m_0 insted of m_1
  • [new] Add new domain class: dy_x for the day of the week
cal-heatmap - Domain navigation limit

Published by wa0x6e about 11 years ago

New minDate and maxDate option to limit domain navigation.

These new options are accompanied by the onMinDomainReached and onMaxDomainReached events, triggered when the loaded domain is the upper/lower bound domain.

Package Rankings
Top 2.32% on Npmjs.org
Top 21.28% on Repo1.maven.org
Badges
Extracted from project README
Cal-Heatmap logo Coverage Status npm version node node