0

how can I update nvd3 pie chart with new values and also resize the pie chart based on its container size.

I already have line and bar chart working with this command to update the chart and also update on resize.

But for PIE chart it throws an error "update is not a function", please help!

nv.utils.windowResize(function() { chart.update() });
user3658423
  • 1,904
  • 5
  • 29
  • 49

1 Answers1

0

newbie bummer.

was using var chart = nv.models.pie()

should have been

var chart = nv.models.pieChart()
user3658423
  • 1,904
  • 5
  • 29
  • 49