An AngularJS directive to allow ZingChart to work dynamically with data.
The directive simply adds dynamic data-binding to your configuration object and/or data. No extra syntax, only the ZingChart syntax you know and love. This allows users to access all features provided by the main ZingChart library
Utilize AngularJS's two-way data-binding by allowing this directive to watch for changes. The directive can be set up to watch for the chart's data values, or even chart configuration attributes.
<script type="text/javascript" src="angular.min.js"></script> <script type="text/javascript" src="zingchart.min.js"></script> <script type="text/javascript" src="zingchart-angularjs.js"></script>
angular.module('myApp', ['zingchart-angularjs']);
<zingchart id="myChart" zc-json="myJson" zc-height=500 zc-width=600></zingchart>
...
$scope.myJson = {
type : 'line',
series : [
{ values : [54,23,34,23,43] },
{ values : [10,15,16,20,40] }
]
};
...