gwatts / jquery.sparkline

A plugin for the jQuery javascript library to generate small sparkline charts directly in the browser
http://omnipotent.net/jquery.sparkline/
1.24k stars 278 forks source link

Use jQuery Sparkline for composite chart with ui-jq in Angularjs #161

Open essivision opened 8 years ago

essivision commented 8 years ago

I use jQuery Sparkline for some chart like this:

<span ui-jq="sparkline" ui-options="[5,6,7,9,9,5,3,2,2,4,6,7], {type: 'line'}" ></span>

but I don't know how to render Composite Sparkline chart because in documentation of Sparkline use this script:

 $('#compositeline').sparkline('html', { fillColor: false });
 $('#compositeline').sparkline([4,1,5,7,9,9,8,7,6,6,4,7,8,4,3,2,2,5,6,7], { composite: true, fillColor: false, lineColor: 'red' }); 

how to implement above model of script with ui-jq?

http://stackoverflow.com/questions/34653149/use-jquery-sparkline-for-composite-chart-with-ui-jq-in-angularjs