<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.line([
{x: 1, value: 10},
{x: 2, value: 6},
{x: 3, value: 17},
{x: 4, value: 13}
]);
// Set scale type.
chart.xScale('linear');
chart.title('Set scale type');
chart.container('container');
chart.draw();
});