Update trend

add option to widget trend in order to show a sparkline