THIS EXAMPLE IS OBSOLETE SINCE THE REQUIRED FUNCTIONALITY IS SUPPORTED OUT OF THE BOX.
Starting from version 17.2, the Chart Control can be directly embedded in a container control's cells using a RepositoryItemAnyControl object.
If the built-in functionality does not suit you, we will be happy to find the most appropriate solution for you if you describe your real-life scenario. Just click here to submit a ticket to our Support Center.
To embed a chart into a container control in previous versions, you need to manually create a custom chart control that implements the IAnyControlEdit interface. See the example below for more details.