angularjs - Unable to get sparklines working with dynamic data in AngularJS4.x of SmartAdmin template -
i using smartadmintemplate
found in http://wrapbootstrap.com
. trying have sparklines
in dashboard showed in dashboard. sparkline
works static data 2000,3000,1000,4000,5000
in place of sitetraffic
given below ...
<div class="col-xs-12 col-sm-5 col-md-5 col-lg-12" sasparklinecontainer> <ul id="sparks" class=""> <li class="sparks-info"> <h5> site traffic <span class="txt-color-blue">47,171</span></h5> <div class="sparkline txt-color-blue hidden-mobile hidden-md hidden-sm"> {{sitetraffic}} </div> </li> </ul> </div>
issue when try use dynamic data in component.ts
sitetraffic= [2000,4000,5000,1000,3000];
displays nothing ...
please let me know how spraklines
work dynamic data..
Comments
Post a Comment