Basic Options

Explore this complete list of the basic Heat.js binding options used set up, customize, and update your heat map settings on the fly.

Example

$heat.updateBindingOptions( "heat-map", {
    defaultView: "line"
} );
Type:Name:Description:
booleanexportOnlyDataBeingViewedStates if only the data being viewed should be exported (defaults to true).
numberdefaultYearStates the year that should be shown when the heat map is rendered for the first time (defaults to the current year).
stringdefaultViewStates the view that should be shown by default (defaults to "map", also accepts "line", "chart", "days", "months", "color-ranges").
stringexportTypeStates the export file type that should be used (defaults to "json", also accepts "csv", "xml", "txt", "md", "html", "tsv", "yaml", and "toml").
booleanuseLocalStorageForDataStates if data added/removed should be remembered in local storage (remembered between browser usages, defaults to false).
booleanallowFileImportsStates if file importing via drag & drop is enabled (defaults to true).
number[]yearsToHideStates the years that should be hidden (defaults to []).
numberdataFetchDelayStates how long the data fetching should wait (in milliseconds) until its next pull (defaults to 60000).
booleanshowOnlyDataForYearsAvailableStates if only data for years available is shown (including in the selector, defaults to false).
booleanshowHolidaysInDayToolTipsStates if the holidays should be shown in the regular day tooltips (defaults to false).
booleanresizableStates if horizontal resizing is enabled (defaults to false).
numberstartMonthStates the first month in the year that should be displayed (allows an Apr-Mar view, and defaults to 0, for Jan).
booleanallowMultipleFileImportsStates if multiple file imports are enabled (defaults to true).
numberpercentageDecimalPointsStates the number of decimal points to show for percentages (defaults to 2).
numberchartsAnimationDelayStates the milliseconds to wait before applying a growth animation to each chart line (for all views, defaults to 50. Set to zero to turn it off).
stringexportDateTimeFormatStates the format of the export date/time that is included in some of the formats (defaults to "{dddd}, {d}{o} {mmmm} {yyyy}").
BindingOptionsSideMenusideMenuStates the options to use for the side menu (see here for properties).
BindingOptionsTitletitleStates the options to use for the title bar (see here for properties).
BindingOptionsYearlyStatisticsyearlyStatisticsStates the options to use for the yearly statistics area (see here for properties).
BindingOptionsDescriptiondescriptionStates the options to use for the description area (see here for properties).
BindingOptionsGuideguideStates the options to use for the guide area (see here for properties).
BindingOptionsTooltiptooltipStates the options to use for the tooltips (see here for properties).
BindingOptionsZoomingzoomingStates the options to use for the zooming area (see here for properties).
BindingOptionsHoliday[]holidaysStates the options to use for the holidays (defaults to 4 items, see here for properties).
BindingOptionsDynamicColorRangedynamicColorRangeStates the options to use for the dynamic color ranges (see here for properties).
BindingOptionsColorRangecolorRangesStates the options to use for the color ranges (see here for properties).