def change_type(self, cls):
target_type = cls._type<EOL>target = self._embedded.createInstance(target_type)<EOL>self._embedded.setDiagram(target)<EOL>return cls(target)<EOL>
Change type of diagram in this chart.

Accepts one of classes which extend Diagram.