1

我正在尝试在链接上添加文本,以便创建问答系统。我发现 GoJS 的流程图最适合这项任务。

我正在尝试升级此示例: http: //gojs.net/latest/samples/flowchart.html

链接上的文本示例:http: //gojs.net/latest/samples/stateChart.html

有没有办法在第一个示例中的链接上添加文本?

4

2 回答 2

1

找到了问题的解决方案。在

    myDiagram.linkTemplate 

我只需要更改面板属性的代码:

    visible: true
于 2015-10-09T08:08:53.453 回答
0

此页面涵盖了基本思想: http: //gojs.net/latest/intro/linkLabels.html

您可能想查看 IVR 树示例http://gojs.net/latest/samples/IVRtree.html,它演示了在链接上添加标签的另一种方法。

尽管图表结构可能与您想要的不同,但在概念图示例http://gojs.net/latest/samples/conceptMap.html和状态图示例中还有另一种显示链接标签的方式http:// gojs.net/latest/samples/stateChart.html

于 2015-10-09T15:45:08.347 回答