Documentation

Getting Started

The jqxHeatMap represents a jQuery widget which displays a graphical representation of data that uses a system of color-coding to represent different values.
Every UI widget from jQWidgets toolkit needs its JavaScript files to be included in order to work properly.

The first step is to create html page and add links to the javascript files and css dependencies to your project. The jqxHeatMap widget requires the following files:

<head>
<link type="text/css" rel="Stylesheet" href="../../jqwidgets/styles/jqx.base.css" />
<script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxheatmap.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2FX5PV9DNT"></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-2FX5PV9DNT');</script></head>

The next step is to create a DIV element within the body of the html document.
<div id="jqxHeatMap">
</div>

The last step is to initialize the widget by adding the following script to the html document:
<script type="text/javascript">
$(document).ready(function () {
var xAxis = { labels: ['John', 'Marry', 'Alba'] };
var yAxis = { labels: ['Mon', 'Tue', 'Wed'] };
var data = [
[89, 39, 94],
[53, 38, 26],
[22, 0, 66]
];
$("#jqxHeatMap").jqxHeatMap({
xAxis: xAxis,
yAxis: yAxis,
source: data,
title: 'Car sales revenue per employee(in 1000 &euro;)'
});
});
</script>

To call a function(method), you need to pass the method name and parameters(if any) in the jqxHeatMap’s constructor.
$("#jqxHeatMap").jqxHeatMap('setPaletteType', 'Fixed');
To set a property(option), you need to pass the property name and value(s) in the jqxHeatMap's constructor.
$("#jqxHeatMap").jqxHeatMap({ title: "Defective Car Parts Count per a Manufacturing Unit" });
To get a property(option), you need to pass the property name to the jqxHeatMap's constructor.
var height = $("#jqxHeatMap").jqxHeatMap("title");

Basic Sample

<!DOCTYPE html>
<html lang="en">
<head>
<title id='Description'>jQuery HeatMap Sample</title>
<meta name="keywords" content="jQuery Heatmap, Heatmap, Basic Functionality" />
<link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" />
<script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../../scripts/demos.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxheatmap.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var xAxis = {
labels: ['John', 'Marry', 'Alba', 'Steven', 'Josh']
};
var yAxis = {
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri']
};
var data = [
[89, 39, 94, 55, 3],
[53, 38, 26, 68, 33],
[22, 0, 66, 90, 78],
[97, 68, 68, 3, 99],
[47, 47, 88, 6, 1]
];
$("#heatmap").jqxHeatMap({
xAxis: xAxis,
yAxis: yAxis,
source: data,
title: 'Car sales revenue per employee(in 1000 &euro;)'
});
});
</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2FX5PV9DNT"></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-2FX5PV9DNT');</script></head>
<body class='default'>
<div id="heatmap"></div>
</body>
</html>

The result of the above code is: