refactored chart model