Hi Dsoftware,
By using the label’s hyperText property we can able to add hyperlink to the label. In the hyperText property set the page link where you want to navigate when click on the label and set text for the hyperlink. Please refer below example for how to set hyperlink for connector.
|
var connectors =
// Defines JSON
{
//Name of the connector
name: "newConnector",
//Sets source and target points
sourcePoint: {
x: 700,
y: 100
},
targetPoint: {
x: 900,
y: 250
},
labels: [{
"text": "Syncfusion",
"hyperlink": "https://www.syncfusion.com/",
fontColor: "blue",
bold: true,
textDecoration: ej.datavisualization.Diagram.TextDecorations.Underline
}],
}; |
Regards
Aravind Ravi