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.line([
3
{x: "January", value: 20},
4
{x: "February", value: 50},
5
{x: "March", value: 30},
6
{x: "April", value: 90},
7
{x: "May", value: 40}
8
]);
9
10
var credits = chart.credits();
11
12
// Set logo source.
13
// You can't customize credits without a license key. See https://www.anychart.com/buy/ to learn more.
14
credits.logoSrc("https://static.anychart.com/logo/oceanic-airlines.png");
15
16
chart.title("Set logo source");
17
chart.container("container");
18
chart.draw();
19
});