<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
//create data
var data = [
{x: "A", value: 100},
{x: "B", value: 100},
{x: ["A", "B"], value: 25}
];
// create a chart and set the data
chart = anychart.venn(data);
// configure labels of intersections
chart.intersections().labels().format("{%x}");
// set the chart title
chart.title("Venn Diagram: Basic Sample");
// set the container id
chart.container('container');
// initiate drawing the chart
chart.draw();
});