Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Morris.Donut with new data #356

Closed
thiagolocatelli opened this issue Jan 26, 2014 · 1 comment
Closed

Update Morris.Donut with new data #356

thiagolocatelli opened this issue Jan 26, 2014 · 1 comment

Comments

@thiagolocatelli
Copy link

I am trying to update a Donut chart with new data, but the method setData is not available on this chart.

   var chart6 = Morris.Donut({
        element: 'chart-6',
        data: [ {label: 'Current', value: 0 },
              {label: 'Available', value: 0 }],
          colors: ['#41cac0', '#49e2d7']
      });  

chart6.setData([
{label: 'Current', value: currentConn },
{label: 'Available', value: availableConn }
]);

Uncaught TypeError: Object # has no method 'setData'

@sudodoki
Copy link
Contributor

Duplicate of #211.
tl;dr: fix via c072224 in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants