Kendo UI Diagram - content text values -


I am using size to create diagrams. Content - & gt; For example, if the node object is:

  var data = [[Designation: "CEO", Name: "Mitchell Johnson": Management of: [[Designation] "Designer", name: "Robert Thompson"}}, {Designation: "Director", name: "Andrew Walker"}, {title: "Vice President", Name: "Smith Cooper" "Vice President", Name: Management of "Harris Jones": [[Designation: "Director", Name: "Edward Collins"}, {Designation: "Director", Name: "Thomas Wang"}]}]}];   

Content here - & gt; The text should mention the 'name' attribute and display it at the center.

Ensure that you add 'size' to diagram config:

  Size: Default: {Visual: Visual Template},   

In the Visual Template, add a way to mark it: / p>

  Function visual tileplate (Option) {var dataviz = kendo.dataviz; var g = new dataviz.diagram.Group (); var dataItem = options.dataItem; g.append (new dataviz.diagram.Rectangle ({width: 210, height: 75, stroke: {width: 0}, fill: dataItem.color})); g.append (new dataviz.diagram.TextBlock ({text: dataItem.name, x: 5, y: 20, color: "#fff"})); }   

If you ever have to focus your text, please let me know. I'm looking for this):

You can also see here:

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -