Chart: support models with less than 2 elements

Signed-off-by: Luca Ottaviano <lottaviano@develer.com>
Chart: draw a straight line when there's only one point in model.

Signed-off-by: Luca Ottaviano <lottaviano@develer.com>