Added a public method to PieChart to allow users to opt not to show the legend

master-patched
EricRose 12 years ago
parent 58de184cf9
commit 2b8f12d6bf

@ -5461,6 +5461,12 @@ nv.models.pieChart = function() {
return chart;
};
chart.showLegend = function(_) {
if (!arguments.length) return showLegend;
showLegend = _;
return chart;
};
chart.tooltips = function(_) {
if (!arguments.length) return tooltips;
tooltips = _;

8
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long

@ -156,6 +156,12 @@ nv.models.pieChart = function() {
return chart;
};
chart.showLegend = function(_) {
if (!arguments.length) return showLegend;
showLegend = _;
return chart;
};
chart.tooltips = function(_) {
if (!arguments.length) return tooltips;
tooltips = _;

Loading…
Cancel
Save