- Information
- License (MIT)
- Recent Changes
- Supported Languages
- Supported Export Types
- Supported Import Types
- Setup
- Getting Started
- CDN Links
- Navigation
- Shortcut Keys
- API
- Public Functions
- Configuration
- Main
- Text (locale)
- Binding Options
- Basic
- Holiday
- Dynamic Color Range
- Color Range
- Date Formatting
- Custom Triggers
- Binding Options - Layout
- Side Menu
- Title Bar
- Yearly Statistics
- Description
- Guide
- Zooming
- ToolTip
- Binding Options - Views
- Map
- Line
- Chart
- Days
- Months
- Color Ranges
Chart
Explore this complete list of Heat.js binding options to easily set up, customize, and update your settings for the 'chart' view on the fly.
Example
$heat.updateBindingOptions( "heat-map", {
"views"": {
"chart": {
"enabled": true
}
}
} );Options
| Type: | Name: | Description: |
|---|---|---|
| boolean | enabled | States if this view is enabled (defaults to true). |
| boolean | showChartYLabels | States if the chart Y axis labels should be shown (defaults to true). |
| boolean | showMonthNames | States if the month names are shown (defaults to true). |
| number[] | monthsToShow | States the months that should be shown (defaults to [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]). |
| number[] | daysToShow | States the days that should be shown (defaults to [1, 2, 3, 4, 5, 6, 7]). |
| boolean | showLineCounts | States if the activity counts should be shown in the lines (defaults to false). |
| boolean | showInReverseOrder | States if the chart should be shown in reverse order (defaults to false). |
| boolean | keepScrollPositions | States if the scroll positions should be maintained when the view is redrawn (or moving year to year, defaults to false). |
| boolean | showLineDateNumbers | States if the date day numbers should be shown (defaults to false). |
| boolean | showToolTips | States if the tooltips should be shown (defaults to true). |
| boolean | useGradients | States if the bar lines should use a gradient fill (defaults to false). |
| string | dayToolTipText | States the tooltip format to use for a chart day (defaults to "{dddd}, {d}{o} {mmmm} {yyyy}"). |
| boolean | highlightCurrentDay | States if the current day should be highlighted (defaults to false). |
| boolean | showYearsInMonthNames | States if the year should be shown in the month name (when "startMonth" is set, defaults to true). |
| boolean | showCountsInToolTips | States if the day counts should be included in the tooltips (defaults to true). |
| boolean | showDifferencesInToolTips | States if the difference percentage with the previous year's count should be shown in the tooltips (defaults to true). |
| boolean | showDifferences | States if the difference percentage with the previous year's count should be shown (defaults to false). |
| boolean | addMonthSpacing | States if spacing and a divider line should be added between each month (defaults to false). |