Unable to get sparklines working in AngularJS vers

2019-03-04 16:47发布

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条回答
做个烂人
2楼-- · 2019-03-04 17:16

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.

查看更多
登录 后发表回答