extend chart functionality