diff --git a/src/models/pieChart.js b/src/models/pieChart.js index 0689269..4e38710 100644 --- a/src/models/pieChart.js +++ b/src/models/pieChart.js @@ -6,7 +6,7 @@ nv.models.pieChart = function() { showLegend = true, color = nv.utils.defaultColor(), tooltips = true, - tooltip = function(key, y, e, graph) { + tooltip = function(key, y, e, graph) { return '

' + key + '

' + '

' + y + '

' }, @@ -148,7 +148,7 @@ nv.models.pieChart = function() { chart.dispatch = dispatch; chart.pie = pie; // really just makign the accessible for discretebar.dispatch, may rethink slightly - d3.rebind(chart, pie, 'values', 'x', 'y', 'id', 'showLabels', 'donut', 'labelThreshold'); + d3.rebind(chart, pie, 'valueFormat', 'values', 'x', 'y', 'id', 'showLabels', 'donut', 'labelThreshold'); chart.margin = function(_) {