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.sparkline([1.3, 2, 1.4, 4, 2.3, 6]);
3
4
// Disables chart credits.
5
// You can't customize credits without a license key. See https://www.anychart.com/buy/ to learn more.
6
chart.credits({text: 'Changed credits', url: 'https://www.anychart.com/buy/'});
7
8
chart.title({text: 'Set chart credits parameter as an object', orientation: 'top'});
9
chart.container('container');
10
chart.draw();
11
});