Hi,
The following code (copied and pasted from the tutorial) does not work in the controller - it looks like it may be JavaScript
model.DefaultSettings.Node = new Node() {
Width = 70,
Height = 30,
shape: { type: "rectangle","cornerRadius": 5 },
};
There is no code in the GetOrgChartData method - I would assume this should be getting some JSON from a file and converting it into the correct format for model.DataSourceSettings.DataSource, though I'm not sure what the format should be. I have tried using the JSON that is under the "Initialize Data Source" section but I can't work out how to load this correctly.
Is there a complete project for this tutorial?
Finally I tried using the JavaScript tutorial and adding that code to the .cshtml file which seems to work except when I scroll or click on the diagram it gets smaller and smaller until it is only a few pixels high.
Any help with the tutorial would be appreciated.
Thanks