Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Update ngecharts.js
Browse files Browse the repository at this point in the history
3.0 不支持clear方法
  • Loading branch information
liekkas committed Jan 18, 2016
1 parent 8e84e94 commit c15def3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ngecharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ angular.module('ng-echarts',['ng-echarts.theme'])

if(scope.config && scope.config.dataLoaded){
var tn = theme.getTheme(scope.config.theme);
chart.clear();
chart.setOption(scope.option);
chart.setTheme(tn||{});
chart.resize();
Expand Down Expand Up @@ -84,4 +83,4 @@ angular.module('ng-echarts',['ng-echarts.theme'])
},
restrict:'EA'
}
}]);
}]);

0 comments on commit c15def3

Please sign in to comment.