I want the content to be divide into two lines. But as per [this][1] thread the template function does not allow a line break. So I tried setting `connectionDefaults.content.visual` with the below function:
var getConnection = function (data) {
var g = new kendo.dataviz.diagram.Group({
autoSize: true
});
var text1 = new kendo.dataviz.diagram.TextBlock({
text: data.label.name,
fontSize: 16
});
g.append(text1);
var text2 = new kendo.dataviz.diagram.TextBlock({
text: data.label.value,
fontSize: 16
});
g.append(text2);
return g;
}
But the problem here is that the `data` field does not populate the connection data due to which assigning values is not possible.
A solution for this is much appreciated.
[1]: http://www.telerik.com/forums/split-labels-over-multiple-lines
var getConnection = function (data) {
var g = new kendo.dataviz.diagram.Group({
autoSize: true
});
var text1 = new kendo.dataviz.diagram.TextBlock({
text: data.label.name,
fontSize: 16
});
g.append(text1);
var text2 = new kendo.dataviz.diagram.TextBlock({
text: data.label.value,
fontSize: 16
});
g.append(text2);
return g;
}
But the problem here is that the `data` field does not populate the connection data due to which assigning values is not possible.
A solution for this is much appreciated.
[1]: http://www.telerik.com/forums/split-labels-over-multiple-lines