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 text =
3
'learning lists meaning useful different grammar' +
4
' teaching example includes thing vocabular frequency phrases content';
5
6
var chart = anychart.tagCloud();
7
8
// Set data.
9
chart.data(text, {
10
mode: 'by-word',
11
minLength: 4,
12
maxItems: 10
13
});
14
15
chart.title('Set data as a text with settings');
16
chart.container('container');
17
chart.draw();
18
});