HTMLcopy
1
<div id="container"></div>
CSScopy
6
1
html, body, #container {
2
width: 100%;
3
height: 100%;
4
margin: 0;
5
padding: 0;
6
}
JavaScriptcopy
x
1
anychart.onDocumentReady(function () {
2
var chart = anychart.column();
3
4
var data = [
5
["00:00", 10],
6
["01:00", 4],
7
["02:00", 17],
8
["03:00", 20],
9
["04:00", 20],
10
["05:00", 16],
11
["06:00", 35],
12
["07:00", 6],
13
["08:00", 15],
14
["09:00", 19],
15
["10:00", 25],
16
["11:00", 34],
17
["12:00", 42],
18
["13:00", 14],
19
["14:00", 50],
20
["15:00", 25],
21
["16:00", 34],
22
["17:00", 40],
23
["18:00", 64],
24
["19:00", 48],
25
["20:00", 22],
26
["21:00", 37],
27
["22:00", 53],
28
["23:00", 62]
29
];
30
31
//create series
32
var series = chart.column(data);
33
34
series.name("Total support requests");
35
36
chart.xAxis().title("Hours");
37
chart.yAxis().title("Support requests");
38
chart.title("Amount of support requests by hours");
39
40
// turn scrollers on
41
chart.xScroller(true);
42
chart.yScroller(true);
43
44
chart.container("container");
45
chart.draw();
46
});