I came across a peculiar issue with lines 23 and 24 of sigma/plugins/sigma.neo4j.cypher/sigma.neo4j.cypher.js:
sigma.neo4j.send = function(neo4j, endpoint, method, data, callback) {
var xhr = sigma.utils.xhr(),
Surprisingly, sigma/src/utils/sigma.utils.js does not contain any reference to that specific method. I am currently working with a clone of the most recent sigma repository. Can someone guide me on how to utilize the neo4j plugin without encountering this error:
TypeError: sigma.utils.xhr is not a function
The code snippet I'm using as an example is as follows:
sigma.neo4j.cypher(
{ url: 'xxx', user: 'demo-app', password: 'xxx' },
'MATCH (n) OPTIONAL MATCH (n)-[r]->(m) RETURN n,r,m LIMIT 100',
{ container: 'graph-container' } ,
function(s) {
console.log('Number of nodes :'+ s.graph.nodes().length);
console.log('Number of edges :'+ s.graph.edges().length);
}
);
Here are the necessary includes:
<script src="sigma/src/sigma.core.js"></script>
<script src="sigma/src/utils/sigma.utils.js"></script>
<script src="sigma/plugins/sigma.neo4j.cypher/sigma.neo4j.cypher.js">
Your assistance in resolving this matter would be greatly appreciated.