Skip to content
Advertisement

Vis.js JSON data to Google Spreadsheets Range

I have a little issue trying to retrieve the data from the Vis.js (here a example!) nodes position and edges related to the id, to a Google SpreadSheets range.

Here’s the code (HTML and GAS)

JavaScript
JavaScript

I think the problem is here, in the HTML Side 🡇

JavaScript

Recap:

At this point, i have problems to read the data from the google script side (its 100% tested, a it works without the “supposed problem part”)

Beforehand, thanks a lot!

Advertisement

Answer

How about this modification?

Modification points:

  • When I saw your script, I noticed the following part. Unfortunately, google.script.run returns no values. So I think that when network is used at the function exportNetwork(), an error occurs at network.getPositions(). I thought that this might be the reason of your issue.

    JavaScript

Modified script:

When your script is modified, how about the following modification?

From:

JavaScript

To:

JavaScript

Reference:

Unfortunately, I cannot test about your actual situation.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement