@Dandy wrote:
Hi, I'm creating a web app for a small university project, which draws graphs for a particular selected course, which the graph shows the course path of the course, such as what units/subjects can taken at the start, and how the units/subjects relate to each other as prerequisites and so on.
How I made my graph to work is that it dynamically creates a JSON format data, nodeDataArray and linkDataArray, for each specific selected course, after that I assigned diagram.model = go.Model.fromJson(value), as normal.
However, once a user would select a course option and the graph is generated for that course, it never changes what so ever when the user would then selected another course.
In other words, while the JSON data changes, the diagram.model is not updated to the changed data. Is there anyway which I can refresh the diagram or refresh diagram.model everytime the JSON data has changed?
I'm not a pro in GoJS, more so of a learner right now, but any form of help will be appreciated because I'm stuck on this issue for couple of days now.
Posts: 1
Participants: 1