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 data = getData();
3
4
var chart = anychart.tagCloud(data);
5
6
// Disables chart credits.
7
// You can't customize credits without a license key. See https://www.anychart.com/buy/ to learn more.
8
chart.credits(false);
9
10
chart.title('Disable chart credits');
11
chart.container('container');
12
chart.draw();
13
});
14
15
function getData() {
16
return [
17
{x: 'learning', value: 80},
18
{x: 'lists', value: 44},
19
{x: 'meaning', value: 40},
20
{x: 'useful', value: 36},
21
{x: 'different', value: 32},
22
{x: 'grammar', value: 28},
23
{x: 'teaching', value: 24},
24
{x: 'example', value: 20},
25
{x: 'includes', value: 56},
26
{x: 'thing', value: 12},
27
{x: 'vocabulary', value: 10},
28
{x: 'frequency', value: 10},
29
{x: 'phrases', value: 15},
30
{x: 'content', value: 27}
31
]
32
}