0
ライン23及びシグマ/プラグイン/ sigma.neo4j.cypher/sigma.neo4j.cypher.js読み取りの24:Sigma.jsのsigma.utils.xhr()メソッドはどこにありますか?
sigma.neo4j.send = function(neo4j, endpoint, method, data, callback) {
var xhr = sigma.utils.xhr(),
しかし、シグマ/ SRC/utilsの/ sigma.utils.jsはへの参照が含まれていませんその方法。私は最新のシグマリポジトリのクローンを使用しています。どのように私はのNeo4jのプラグインを使用してエラーを回避します:
TypeError: sigma.utils.xhr is not a function
'私' コードは、デフォルトの例である:あなたの助けのための
<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">
感謝:
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);
}
);
はあるが含まれています。