Cannot re-initialize scatter for a second time with the extension version
See original GitHub issueI know the extension version is not recommended using any longer, but something wrong when trying to re-initialize scatter for a better network connection.
"eosjs": "^16.0.9",
"scatterjs-core": "^2.7.14",
"scatterjs-plugin-eosjs": "^1.5.1"
const network = [{...}, {...}]
const initScatter = index => {
console.log('init start');
ScatterJS.scatter.connect('APP_NAME').then(connected => {
console.log('something wrong here');
if (!connected) {
return false;
}
ScatterJS.scatter.eos(network[index], Eos);
return true;
});
};
initScatter(0)
document.getElementById('networkIndexSelection').addEventListener('change', e => {
const index = e.currentTarget.value;
document.getElementById('networkIndex').innerHTML = index;
initScatter(index);
});
when I tried to change the index to re-initialize the scatter, occurs
Extension.js:1 Uncaught (in promise) TypeError: Cannot read property 'get' of undefined
Ony with the EXTENSION version.
https://github.com/edwardfhsiao/scatter-test-repo
npm i
then
npm run server
0.0.0.0:3000
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
plotly.scatter figure doesnt reset when updating with callback ...
Here are some advises to your code, to avoid this behaviour. Use Dash built-in debugger to see what is inside the callbacks. It...
Read more >Troubleshooting in Python - Plotly
If you are encountering problems using plotly with Dash please first ensure that you have upgraded dash to the latest version, which will...
Read more >gnuplot documentation
Time coordinates are stored internally as the number of seconds relative to the standard unix epoch 1-. Jan-1970. Earlier versions of gnuplot used...
Read more >Futures - Dask documentation
Dask supports a real-time task framework that extends Python's ... Scattering moves your data to a worker and returns a future pointing to...
Read more >Chapter 4. Visualization with Matplotlib - O'Reilly
plot is that it can be used to create scatter plots where the properties of each individual point (size, face color, edge color,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Okay, now I understand. Thank you @nsjames