Jquery Sparklines Issue
Jquery Sparklines Issue
Hi EveryBody,
I have created compositeline sparklines using the omnipoint sparklines using the "jquery.sparkline.js"
HTML CODE:
<p>
Composite inline <span id="compositeline">0.02214812, 0.021514995, 0.021613538, 0.021633292,
0.02159154, 0.021407593, 0.021312919, 0.021529202, 0.02223151, 0.022958307, 0.024464095,
0.025910059, 0.027205906, 0.027245826, 0.027468156, 0.027750372, 0.028779007, 0.0293326,
0.030160552, 0.031313578, 0.033224955, 0.035024298, 0.038353643, 0.042557391, 0.04402131,
0.042479461, 0.041178832, 0.040073234, 0.039585965, 0.038871772, 0.038919661</span>
</p>
My javascript function is the below :
<script type="text/javascript">
$(function() {
$('#compositeline').sparkline('html', { fillColor: false,width:'150', height:'30',lineColor: 'Red' });
$('#compositeline').sparkline([10,1,9,2,8,3,7,4,6,5,1], { composite: true, fillColor: false,
lineColor: 'Green', width:'150',height:'30' });});
</script>
The above geneartes sparklines without any issues, but the first sparkline is generated with the value which i have given in my html <p> </p> tag, the second one is given in the javascript function function as array, is it possible to pass the second sparkline's value also from html.
It would be very much thankful if anyone give a suggestion on this.
Thank You,
Kalidhas.P