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

Display sum of child node data in parent node

$
0
0

@jsloan wrote:

Hi,

My nodes all contain a counter in their node data. I would like to display the sum of the child node counters in the parent nodes.

Is there some way to do this in the nodeTemplate? I was hoping to bind a field to a function that would do this.

e.g.

new go.Binding("text", "text", function() { sumCounters="sum of the child node counters"; return sumCounters })

thanks

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles