<button onclick="chart.fullScreen(true)">Enable fullscreen mode</button>
<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
button {
margin: 10px 0 0 10px;
var chart;
anychart.onDocumentReady(function () {
chart = anychart.line([
{x: 'January', value: 2},
{x: 'February', value: 5},
{x: 'March', value: 3},
{x: 'April', value: 9},
{x: 'May', value: 4}
]);
chart.title('Enable fullscreen mode by clicking the button above the chart');
chart.container('container');
chart.draw();
});