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
8
// Set parent bounds.
9
list.parentBounds(0, 0, 600, 600);
10
11
list.container(stage);
12
list.draw();
13
});
14
function getData() {
15
return [
16
{
17
"name": "Vasil Kiryienka",
18
"description": "Rider"
19
},
20
{
21
"name": "Elia Viviani",
22
"description": "Rider"
23
},
24
{
25
"name": "Ben Swift",
26
"description": "Rider"
27
},
28
{
29
"name": "Michal Kwiatkowski",
30
"description": "Rider"
31
},
32
{
33
"name": "Alex Peters",
34
"description": "Rider"
35
}
36
];
37
}