HTMLcopy
1
<div id="container"></div>
CSScopy
6
1
html, body, #container {
2
width: 100%;
3
height: 100%;
4
margin: 0;
5
padding: 0;
6
}
JavaScriptcopy
x
1
anychart.onDocumentReady(function () {
2
// To work with the data adapter you need to reference the data adapter script file from AnyChart CDN
3
// https://cdn.anychart.com/releases/8.13.0/js/anychart-data-adapter.min.js
4
5
// Load XML data and create a chart using XML data.
6
anychart.data.loadXmlFile("https://cdn.anychart.com/charts-data/data_xml.xml", function (data) {
7
// create a chart and set loaded data
8
var chart = anychart.bar(data);
9
// configure and display
10
chart.title("Load XML data and create a chart");
11
chart.container("container");
12
chart.draw();
13
});
14
});