added correct get set logic to chart class as well