无法获得迷你图在AngularJS版本的SmartAdmin模板中工作
问题描述:
我已经使用SmarrAdmin模板启动了angularjs种子项目.
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>
但是图表未显示,我看到的只是"50、40、70" ...
But the chart doesn't show up and all i see is "50, 40, 70"...
答
创建种子角项目后,我不得不在app.js中添加/取消注释模块"app.graphs".
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.