Hi Jim
Thanks for using Syncfusion products.
We suggest you to set an “offset” for an label of text node in order to achieve your requirement and you can define the label offset value from 0 to 1. Please refer the code snippet and sample below.
Code snippet:
function updatelabel() {
var diagram = $("#Diagram1").ejDiagram("instance");
var node = diagram.selectionList[0];
if (node) {
if (node.shape.textBlock) {
var obj = new Object();
obj.textAlign = "left";
//offset for left align
obj.offset = ej.datavisualization.Diagram.Point(0, 0.5);
//update text node label
diagram.updateLabel(node.name, node.shape.textBlock, obj);
}
}
}
Sample: http://www.syncfusion.com/downloads/support/directtrac/118174/WebApplication2905723546.zip
Please let me know if any concerns.
Regards,
Shyam G
Hi Jim
Thanks for the update
Please let me know if you require further assistance on this.
Regards,
Shyam G