-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
title in the middle of donut doesn't appear #140
Comments
Do we have any progress on this issue? B/c I am also experiencing the same thing. |
So I was able to fix this issue by making sure I was on the latest verison of the library....v1.0.0-rc.2 works just fine. You just need to add title on the root of the chart object...and its a string. |
Yes, it works in the latest versions. |
Yup, thanks @krispo, I was able to resolve it by upgrading my version. I forgot to close this issue. Thanks for following up. |
@krispo : Is there a way to provide the title in donut chart asynchronously ? As per my requirement, I actually want to show the 'total number' as the title which will be fetched from an ajax call. How can I provide a title in such scenario ? Kindly guide :) |
Hello,
The title doesn't appear. This is my code.
$scope.options= {
chart: {
type: 'pieChart',
height: 200,
width: 200,
donut: true,
x: function(d){return d.label;},
y: function(d){return d.value;},
showLabels: true,
pie: {
startAngle: function(d) { return d.startAngle/2 -Math.PI/2 },
endAngle: function(d) { return d.endAngle/2 -Math.PI/2 },
title: true
},
showLegend: true,
labelThreshold: 0.01,
labelType: "percent",
title: 'fae',
};
Thank you for your help.
BR
The text was updated successfully, but these errors were encountered: