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 stage = anychart.graphics.create('container');
3
4
var data = getData();
5
6
var list = anychart.standalones.resourceList(data);
7
list.parentBounds(0, 0, 600, 600);
8
9
// Set maximum row height.
10
list.maxRowHeight(30);
11
12
list.container(stage);
13
list.draw();
14
});
15
function getData() {
16
return [
17
{
18
name: 'Vasil Kiryienka',
19
description: 'Rider'
20
},
21
{
22
name: 'Elia Viviani',
23
description: 'Rider'
24
},
25
{
26
name: 'Ben Swift',
27
description: 'Rider'
28
},
29
{
30
name: 'Michal Kwiatkowski',
31
description: 'Rider'
32
},
33
{
34
name: 'Alex Peters',
35
description: 'Rider'
36
}
37
];
38
}