Fix #2533069

Minor fix to avoid having to hack sparkline example.

@davglass 
@ericf