无法获得迷你图在AngularJS版本的SmartAdmin模板中工作 [英] Unable to get sparklines working in AngularJS version of SmartAdmin template

查看:112
本文介绍了无法获得迷你图在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.

这篇关于无法获得迷你图在AngularJS版本的SmartAdmin模板中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆