angular-chartist.js

Angular Chartjs How to make it reactive to data change?

别来无恙 提交于 2019-12-13 01:03:53
问题 I'm trying to write an app that will show some data from API and during the work I will be able to change time and date range that I would like to show on the chart. Right now I am fighting with basic data change. I have a simple chart code: HTML: <button type="button" class="btn btn-success" ng-click="ReloadChart();">Reload</button> <div class="col-lg-12 col-sm-12" id="line-chart" ng-controller="LineCtrl"> <div class="panel panel-default"> <div class="panel-heading">Line Chart</div> <div