I finally fixed it, there is a parameter that you can add as an option:
disableHiddenCheck
had to set it to true, so this works with:
<script type="text/javascript">$(function() {$('.inlinesparkline').sparkline('html', {type: 'line', disableHiddenCheck: true, height: '20px', width: '100px'});});</script>