0

I am using cytoscape.js to create & display graph. Now, I want to add pan & zoom buttons, so that user can zoom and pan very large graph. I have found a plug-in cytoscape-panzoom included with cytoscape.js. I have include all required files in my page :-

e.g.

  • jquery.cytoscape-panzoom.js,

  • jquery-ui-1.8.11.custom.min.js,

  • jquery.cytoscape-panzoom.css

But no pan zoom buttons are shown. How can i solve this problem. Please help me.

Community
  • 1
  • 1
hp36
  • 269
  • 1
  • 6
  • 20

1 Answers1

1

You have to call the jQuery plugin (panzoom) as normal for a jQuery plugin on the cytoscape.js div:

$('#some-cy-div').cytoscapePanzoom({ /* options... */ });
maxkfranz
  • 11,896
  • 1
  • 27
  • 36
  • I have called **$('#cy').cytoscapePanzoom();** inside ** – hp36 Dec 31 '13 at 08:12