sigmajs lets you add buttons to trigger events, in static documents, such as this one.

A button to export the graph as SVG, not that you can export to an image (png, jpeg, gif or tiff).

Events that can be triggered via a button (corresponding function name minus sg_):

  • force_start
  • force_stop
  • noverlap
  • drag_nodes
  • relative_size
  • add_nodes
  • add_edges
  • add_nodes_edges
  • drop_nodes
  • drop_edges
  • animate
  • export_svg
  • export_img

You will examples of the above scattered throughout the documentation.