added history graph to serial sample