Exploring the NVD3 framework and attempting to enhance a customized tooltip for a specific pie chart given below:
var app = angular.module('plunker', ['nvd3']);
app.controller('MainCtrl', function($scope) {
$scope.options = {
chart: {
type: 'pieChart',
height: 500,
x: function(d){return d.key;},
y: function(d){return d.y;},
color:['#CE1B1F', '#FFC455', '#00A6CD'],
showLabels: false,
duration: 500,
labelThreshold: 0.01,
labelSunbeamLayout: true,
legend: {
margin: {
top: 5,
right: 35,
bottom: 5,
left: 0
}
}
}
};
$scope.data = [
{
key: "A",
y: 2
},
{
key: "B",
y: 1
},
{
key: "C",
y: 3
},
];
});
Considering methods to personalize the tooltip to match a desired style, based on Krispo's sample on [github][1]. Any suggestions on how to achieve this?