0

Introduction to GoJs

can anyone please tell me the error in this code <!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="UTF-8" /> <title> </title> <script src="go.js"></script> <script> function init(){ var $=go.GraphObject.make; myDiagram=$(go.Diagram,"myDiagramdiv"); var nodeDataArray=[ {key : "Alpha"}' {key : "Beta"} ]; var linkDataArray=[ {to: "Beta", from: "Alpha"} ]; myDiagram.model = go.GraphLinksModel(nodeDataArray, linkDataArray); } </script> </head> <body onload="init()"> <div id="myDiagramdiv" style="width:300px; height:300px; border: 1px solid black;"></div> </body> </html>

21st Jan 2019, 10:44 AM
ROBOKIT
ROBOKIT - avatar
2 odpowiedzi
+ 2
{key:"Alpha"}, not {key:"Alpha"}'
21st Jan 2019, 11:44 AM
Gordon
Gordon - avatar
0
After {key:"Alpha"} should be, instead of '
21st Jan 2019, 11:44 AM
Gordon
Gordon - avatar