Skip to content

Persistence And Export

Persistence is about saving the visualization state, not just the graph data. The exported state can include camera position, selected nodes, behavior state, mapper configuration, and visual settings that make a session recoverable.

Figure export uses the active renderer, camera, mappers, labels, and legends. That makes export code short: configure the view through public APIs, render the view, then ask Helios for an image.

Save And Restore State

This example selects a few nodes, exports visualization state to a string, clears the selection, and restores the saved state.

Save And Restore View State

      

Export A Figure Preview

This example maps node color, renders the graph, and appends a generated PNG preview below the live canvas. In a production app, the same export call can be attached to a download button, report builder, or publication workflow.

Export A Figure Preview