chart method.