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.tagCloud();
3
4
// Set data.
5
chart.data('learning|80 lists|44 meaning|40 useful|36 different|32 grammar|28 teaching|24 example|20 includes|56 thing|12 vocabulary|10 frequency|10 phrases|15 content|27', {
6
rowsSeparator: ' ',
7
columnsSeparator: '|'
8
});
9
10
chart.title('Set data as CSV');
11
chart.container('container');
12
chart.draw();
13
});