Repository navigation
Expand file tree
/
Copy pathempty-points.js
More file actions
51 lines (50 loc) · 1.71 KB
/
Copy pathempty-points.js
File metadata and controls
51 lines (50 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
this.default = function () {
var heatmap = new ej.heatmap.HeatMap({
titleSettings: {
text: 'Deffective Count per 1000 Products from a Manufacturing Unit',
textStyle: {
size: '15px',
fontWeight: '500',
fontStyle: 'Normal',
fontFamily: 'Segoe UI'
}
},
xAxis: {
labels: ['2007', '2008', '2009', '2010', '2011',
'2012', '2013', '2014', '2015', '2016', '2017'],
},
yAxis: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May',
'Jun', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec'],
}, cellSettings: {
border: {
width: '0',
color: 'white'
},
showLabel: true
},
paletteSettings: {
palette: [{ color: 'rgb(172, 213, 242)' },
{ color: 'rgb(127, 168, 201)' },
{ color: 'rgb(82, 123, 160)' },
{ color: 'rgb(37, 78, 119)' },
],
type: 'Gradient'
},
legendSettings: {
position: 'Bottom',
width: '250px',
showLabel: true,
},
tooltipRender: function (args) {
args.content = [args.yLabel + ' | ' + args.xLabel + ' : ' + args.value + ' deffective units'];
},
load: function (args) {
var selectedTheme = location.hash.split('/')[1];
selectedTheme = selectedTheme ? selectedTheme : 'Material';
args.heatmap.theme = (selectedTheme.charAt(0).toUpperCase() + selectedTheme.slice(1));
},
dataSource: window.emptyPointDataSource
});
heatmap.appendTo('#container');
};