<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.line();
var series = chart.line([
{x: "January", value: 2},
{x: "February", value: 5},
{x: "March", value: 1},
{x: "April", value: 3}
]);
series.name("Sales");
// Get series X scale.
var scale = series.yScale();
scale.inverted(true);
chart.title("Get and modify Y scale");
chart.container("container");
chart.draw();
});