Each node contains a Table Panel whose Panel.itemArray is data bound to the "items" property which holds an Array of data objects. That Table Panel has an Panel.itemTemplate which creates a bar (a rectangular Shape) and a TextBlock label for each item. Each bar also has a tooltip showing the value.

For more sophisticated charts within nodes, see the Canvas Charts sample.

加入 GoJS 交流群
GoJS 交流群 (769862113)