fixing click to center on history chart