Hi Fabian,
Please use label’s templateId property to achieve your requirement. please refer to the code example below.
Code example:
<script id="animationellipse" type="text/x-jsrender">
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<circle cx="10" cy="6" r="5"
style="stroke:#006600; fill:#00cc00" />
</svg>
</script>
Connector connector = new Connector();
Label label = new Label();
label.TemplateId = "animationellipse";
connector.Labels.Add(label);
Regards,
Shyam G