Fix problem showing undefined value for last point in lines graphs.