Skip to content
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

Closed
wsoubra opened this issue Jun 3, 2015 · 5 comments
Closed

title in the middle of donut doesn't appear #140

wsoubra opened this issue Jun 3, 2015 · 5 comments
Labels

Comments

@wsoubra
Copy link

wsoubra commented Jun 3, 2015

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',

    legend: {
      margin: {
        top: 5,
        right: 35,
        bottom: 5,
        left: 0
      }
    }
  }

};

Thank you for your help.
BR

@nomadtechie
Copy link

Do we have any progress on this issue? B/c I am also experiencing the same thing.

@nomadtechie
Copy link

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.

@krispo krispo added the pie label Oct 22, 2015
@krispo
Copy link
Owner

krispo commented Nov 28, 2015

Yes, it works in the latest versions.

@krispo krispo closed this as completed Nov 28, 2015
@nomadtechie
Copy link

Yup, thanks @krispo, I was able to resolve it by upgrading my version. I forgot to close this issue. Thanks for following up.

@VaibhavP17
Copy link

@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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants