<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
// To work with the data adapter you need to reference the data adapter script file from AnyChart CDN
// https://cdn.anychart.com/releases/8.13.0/js/anychart-data-adapter.min.js
var chart = anychart.cartesian();
// Create a chart from JSON file
anychart.fromXmlFile("https://cdn.anychart.com/config-samples/line-chart.xml", function (chart) {
// set additional settings
chart.title("Create a chart from XML file");
// display chart
chart.container("container");
chart.draw();
});