ogobrecht / d3-force-apex-plugin

Oracle APEX Region Type Plugin: D3 Force Network Chart

Home Page:https://ogobrecht.github.io/d3-force-apex-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught TypeError: Cannot read property 'replace' of undefined ....

Lutherwaves opened this issue · comments

Hi,
I really liked your implementation of the forced graph and decided to try and test it out with some of my data. Unfortunately I stumbled upon an Uncaught TypeError when trying to load the example.html. The error:

Uncaught TypeError: Cannot read property 'replace' of undefined
at Object.f.main.init (d3-force-2.0.3.min.js:formatted:20)
at netGobrechtsD3Force (d3-force-2.0.3.min.js:formatted:1353)
at window.onload ((index):29)

I tried to somehow circle around the issue but failed because of my lacking skills in JS. I would love if you could give me some feedback/tips on how to go around the bug or to solve it.

Thanks in advance!

Hi Lutherwaves,

sorry for the not functional example. I had to fix the Oracle APEX plugin some time ago and I forgot to check the standalone version.

During the summer I was working on the documentation with JSDoc and some improvements. Unfortunately I had to switch to some other projects and since three months I had no time to do the last steps for the new version.

But: the new version is still running - also standalone. Please check out the "dev" branch and have a look in the "server" subdirectory. The links in the README.md to the online docs are currently not working because the new version is not finished yet. If you want to see the new docs, then please have a look in the subdirectory "docs".

Sorry again, the winter is coming and with it more time again for this project. I still hope to finish the last steps for the new release this year (2017).

Best regards
Ottmar

Hi again,

if you are not able to get the graph running please provide me your test data and I will try to see what is going on.

Best regards
Ottmar

Hi Martin,

I have a question: Do you work with Oracle APEX and using the plugin or do you want to use the bare JavaScript files in an normal HTML environment?

Can you provide me a small data sample which causes the error so I can have a look, what the reason is for your problem?

Thank you and best regards
Ottmar

Hi Martin,

as mentioned earlier please try the current dev version: https://github.com/ogobrecht/d3-force-apex-plugin/archive/dev.zip - it is stable enough for your tests.

You will find in the server directory a running example.html. To get an idea which data you have to provide you can simply print the json data of the running graph to your console by executing example.data() or for a serialized version JSON.stringify(example.data());.

For a pretty output you can use JSON.stringify(example.data(), null, 2);.

Please have also a look in the docs directory and launch the index.html in your browser to see the new API docs.

Hope this helps, best regards
Ottmar

Hi Martin,

good luck with your project! And let me know, if you need some help.

Best regards
Ottmar