make chart lazyload ability for ng-echarts
this plugin depend on the jquery and ng-echarts , turned from jquery.lazyload
You can use it in Angular App only with the two below usage steps:
1. add the jquery plugin file and directive file:
<script src="path/to/ng-echarts.lazyload.js"></script>
<script src="path/to/ui-ng-echarts-lazyload.js"></script>
2. add "ng-echarts-lazyload" attribute to the ng-echarts element within the page.
<ng-echarts ng-echarts-lazyload ec-config="yourEcConfig" ec-option="yourEcOption"></ng-echarts>
Otherwise, you can also use it with jquery directly without the angular directive file.
<script src="path/to/ng-echarts.lazyload.js"></script>
<script>
$('ng-echarts').ngEcharts_lazyload();
</script>