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.mekko();
3
chart.data({
4
rows: [
5
['Apples', 21, 99, 19],
6
['Pears', 41, 7, 71],
7
['Bananas', 9, 15, 77]
8
]
9
});
10
11
// Get chart credits.
12
// You can't customize credits without a license key. See https://www.anychart.com/buy/ to learn more.
13
var credits = chart.credits();
14
15
credits.text('Changed credits');
16
17
chart.title('Get and modify chart credits');
18
chart.container('container');
19
chart.draw();
20
});