From d6006ad911ce9e462ab8f2785e0a6bd6f090332d Mon Sep 17 00:00:00 2001 From: Tomasz Werbicki Date: Mon, 30 Jul 2012 00:45:10 -0500 Subject: [PATCH] Expose pie valueFormat in pieChart. --- src/models/pieChart.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(_) {