<button onclick="fullScreen();">Enable fullscreen mode</button>
<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
var chart;
anychart.onDocumentReady(function () {
chart = anychart.gauges.linear([300, 250, 150]);
chart.addPointer(0, 1, 2);
chart.title('Enable fullscreen mode by clicking the button above the chart');
chart.container('container');
chart.draw();
});
function fullScreen() {
// Enable fullscreen mode
chart.fullScreen(true)