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: 1.1},
4
{x: 'February', value: 1.6},
5
{x: 'March', value: 1.4},
6
{x: 'April', value: 1.9}
7
]);
8
9
var yAxis = chart.yAxis();
10
11
// Set title settings.
12
yAxis.title({text: 'New title for the axis', fontSize: 16});
13
14
chart.title('Set title parameters as an object');
15
chart.container('container');
16
chart.draw();
17
});