JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://cdn.kendostatic.com/2013.2.918/js/kendo.all.min.js"></script>
<div id="output"></div>
<div id="container">
<div class="chart" style="padding:30px;background-color:#BBBBBB;"></div>
Gray area is outside of the SVG element.<br/>
Clicking outside of SVG: event fires once. <br/>
Clicking inside of SVG: event fires twice.
</div>
JavaScript
$(document).ready(function () {
$(".chart").kendoChart({
title: {
position: "bottom",
text: "Share of Internet Population Growth, 2007 - 2012"
},
legend: {
visible: false
},
seriesDefaults: {
labels: {
visible: true,
background: "transparent",
template: "#= category #: #= value#%"
}
},
series: [{
type: "pie",
startAngle: 150,
data: [{
category: "Asia",
value: 53.8,
color: "#9de219"
},{
category: "Europe",
value: 16.1,
color: "#90cc38"
},{
category: "Latin America",
value: 11.3,
color: "#068c35"
},{
category: "Africa",
value: 9.6,
color: "#006634"
},{
category: "Middle East",
value: 5.2,
color: "#004d38"
},{
category: "North America",
value: 3.6,
color: "#033939"
}]
}],
tooltip: {
visible: true,
format: "{0}%"
}
});
$(".chart").mousedown(function() {
$("#output").text($("#output").text() + " Mousedown fired!");
return false;
});
});