We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Is it possible to add multiple Labels to the Hierarchical Diagram nodes?

Hi there,

I am using the Hierarchial Diagram to display data linked together.

Is it possible to add more than 1 text label to each node?

I tried adding a Label but this does not work.

            Label testLabel = new Label()
            {
                FontColor = "White",
                FontSize = 12,
                Text = "Test",
            };

            model.DefaultSettings.Node.Labels.Add(testLabel);

I can add the required text to the JSON string I'm using but don't know how to attach it to the node.

Thanks

Neill

2 Replies

NE Neill May 12, 2017 01:57 PM UTC

I got it working. Please close.

Thank you.

Neill




SG Shyam G Syncfusion Team May 15, 2017 04:28 AM UTC

Hi Neill, 
We are happy to hear that your problem is resolved. 
Regards, 
Shyam G 


Loader.
Up arrow icon