2017-03-18 8 views
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); 
     } 
); 

はあるが含まれています。

答えて

0

npm installを使用してすべての依存関係をインストールしていないようです。私はクローンしてSigmaをインストールし、sigma.js/examples/load-neo4j-cypher-query.htmlを試しました。

希望すると便利です。

関連する問題