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"...
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