I would like to display "Not acknowledged" and "Acknowledged" in the legend, and have the amounts display as labels on the pie chart. I do not see a way of accomplishing this in the directive options.
http://krispo.github.io/angular-nvd3/#/pieChart
Javascript options & data:
$scope.pie = {
options: {
chart: {
type: 'pieChart',
height: 300,
margin: {
top: 0,
right: 20,
bottom: 0,
left: 20
},
color: ["#97bbcd", "#dcdcdc"],
x: function(d){return d.y;},
y: function(d){return d.y;},
legend: {
updateState:false
},
showLabels: true,
showLegend: true,
transitionDuration: 500,
labelThreshold: 0.01
}
},
data: [
{
key: 'Not Acknowledged',
y: 18
},
{
key: 'Acknowledged',
y: 44
}
]
};