<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
// create CSV string
var csvString = 'Dates;Price*' +
'2009-02-05;6764.81*' +
'2009-02-07;7056.48*' +
'2009-02-18;7180.97*' +
'2009-02-26;7269.06*' +
'2009-02-25;7349.58*' +
'2009-02-24;7115.34*' +
'2009-02-23;7365.99*' +
'2009-02-20;7461.49*' +
'2009-02-19;7555.23';
// create an area chart
var chart = anychart.line();
// create the area series based on CSV data
chart.line(csvString, {ignoreFirstRow: true, columnsSeparator: ";", rowsSeparator: "*"});
// display a chart
chart.container('container').draw();
});