window.onload = function () {
var chart = new CanvasJS.Chart("chartContainer", {
animationEnabled: true,
title:{
text: "Mortgage Calculator",
horizontalAlign: "left"
},
data: [{
type: "doughnut",
startAngle: 270,
indexLabelFontSize: 17,
indexLabel: "{label} - #percent%",
toolTipContent: "<b>{label}:</b> {y} (#percent%)",
dataPoints: [
{ y: 60, label: "Principle & Interest"},
{ y: 10, label: "Property Taxes"},
{ y: 60, label: "Proprety Insurance"}
]
}]
});
chart.render();
}