javascript - How to display angular js bar graph in modal popups -


hi trying display angular js bar chart in modal popup (jquery modal), not working. have tried below code.

<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="mylargemodallabel" aria-hidden="true">                     <div class="modal-dialog modal-lg">                         <div class="modal-content widg_larg">                             <div class="title">modal title                               <span class="pull-right cursor_pointer">                                 <i class="fa fa-times" data-dismiss="modal" aria-label="close"></i>                               </span>                               <div ng-controller="testconrtoller">                               <canvas class="chart chart-bar" data="data"                             labels="labels" width="400" height="400"></canvas>                              </div>                           </div>                         </div>                     </div>                 </div> 

and js code

app.controller("testcontroller", function ($scope, $http) {             $scope.labels = ["january", "february", "march", "april", "may", "june", "july"];           $scope.series = ['series a', 'series b'];           $scope.data = [             [65, 59, 80, 81, 56, 55, 40],             [28, 48, 40, 19, 86, 27, 90]           ];           $scope.onclick = function (points, evt) {             console.log(points, evt);           };         }); 

but not working there other way work it.


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -