I'm having a hard time getting the title to display for a donut chart. Here is the plunkr I have: http://plnkr.co/edit/nJBpvU3YFAGaoc5BTXi7?p=preview. Here are the options I put:
$scope.options = {
chart: {
type: 'pieChart',
height: 450,
donut: true,
x: function(d){return d.key;},
y: function(d){return d.y;},
showLabels: true,
pie: {
startAngle: function(d) { return d.startAngle/2 -Math.PI/2 },
endAngle: function(d) { return d.endAngle/2 -Math.PI/2 }
},
transitionDuration: 500,
legend: {
margin: {
top: 5,
right: 70,
bottom: 5,
left: 0
}
},
title: "Hello"
},
title: {
text: "Hello"
}
};
I tried adding the title "Hello" in two separate places, but it's not showing up. Can anyone see what I'm doing wrong?