Unable to get sparklines working in AngularJS version of SmartAdmin template

独自空忆成欢 提交于 2019-12-02 16:24:34

问题


I have started a angularjs seed project with SmarrAdmin template.

I would like to create a sparkline in a view like this

<div class="sparkline" data-sparkline-type="bar" 
data-sparkline-width="50px" 
data-sparkline-bar 
data-sparkline-height="25px">
50,40,70
</div>

But the chart doesn't show up and all i see is "50, 40, 70"...


回答1:


After creating a seed angular project i had to add/uncomment the module 'app.graphs' in app.js.

The sparkline container is a directive implemented in this module.



来源:https://stackoverflow.com/questions/37027755/unable-to-get-sparklines-working-in-angularjs-version-of-smartadmin-template

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!