Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

GoJS biding nodeArrayData

$
0
0

@bahuubali wrote:

Hi, can someone help me to solve this problems ?
I have used goJS to create flowchart and the json data default look like below:

nodeDataArray: [
{ key: ‘Alpha’, label: ‘Alpha’, color: ‘lightblue’ },
{ key: ‘Beta’, label: ‘Beta’, color: ‘orange’ },
{ key: ‘Gamma’, label: ‘Gamma’, color: ‘lightgreen’ },
],
linkDataArray: [
{ from: ‘Alpha’, to: ‘Beta’, text: ‘Yes123’ },
{ from: ‘Alpha’, to: ‘Gamma’, text: ‘Yes123’ },
],

But if i want to format nested data in nodeDataArray look like below:

nodeDataArray: [
        { key: 'Alpha', label: 'Alpha', color: 'lightblue', data:[
            {
            key:'Alpha child',
            label:'Alpha child',
            color:'red';
            data:[{key:'', label:'', color:''}]
            },{
             key:'Alpha child',
            label:'Alpha child',
            color:'red';
            },
        ] },
        { key: 'Beta', label: 'Beta', color: 'orange' },
      ],

So could we can do it? Thanks for help!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles