Add more sparkline display features from afeld's sparkline-inline branch