2014-10-19 16:20:44 +02:00
|
|
|
$(document).ready ->
|
|
|
|
$('table.list.dates tbody tr').each ->
|
2014-10-24 01:40:07 +02:00
|
|
|
vals = $(this).find('td.quantity a').map ->
|
2014-10-19 16:20:44 +02:00
|
|
|
val = $(this).html().replace(' ', '').trim()
|
|
|
|
if (val != '')
|
|
|
|
return parseInt val
|
|
|
|
|
|
|
|
$(this).find('.sparkline').sparkline vals, width: '5em'
|
|
|
|
|
|
|
|
vals = $('table.list.dates tfoot th.quantity').map ->
|
|
|
|
return parseInt $(this).html().replace(' ', '')
|
|
|
|
|
|
|
|
$('tfoot .sparkline').sparkline vals,
|
|
|
|
type: 'bar'
|
|
|
|
height: '3em'
|
2014-10-23 10:59:14 +02:00
|
|
|
barWidth: '80em'
|
2014-10-19 16:20:44 +02:00
|
|
|
barColor: '#9CC5EE'
|
2014-10-19 16:47:30 +02:00
|
|
|
barSpacing: 2
|