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

Commit

Permalink
Merge pull request #3 from lopn/master
Browse files Browse the repository at this point in the history
add bower and  clear chart when refreshChart start
  • Loading branch information
liekkas committed Mar 15, 2016
2 parents c15def3 + a92510c commit e720090
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
23 changes: 23 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "ng-echarts-bower",
"version": "1.0.0",
"homepage": "https://github.com/lopn/ng-echarts",
"description": "ng-echarts add bower",
"main": "dist/ng-echarts.js",
"moduleType": [
"node"
],
"keywords": [
"angularjs",
"echarts",
"angular",
"chart"
],
"license": "MIT",
"dependencies": {
"angular": "^1.3",
"echarts": "~2.2.7"
},
"devDependencies": {}

}
2 changes: 2 additions & 0 deletions dist/ng-echarts.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ angular.module('ng-echarts',['ng-echarts.theme'])
var chart = scope.chart;

function refreshChart(){
chart.clear();
if(scope.config && scope.config.dataLoaded === false){
ctrl.showLoading(scope.config.loadingOption);
}
Expand Down Expand Up @@ -84,6 +85,7 @@ angular.module('ng-echarts',['ng-echarts.theme'])
restrict:'EA'
}
}]);

/**
* Created by liekkas.zeng on 2015/1/7.
*/
Expand Down
Loading

0 comments on commit e720090

Please sign in to comment.