A Nessie block that takes a graph data structure and returns an interactive HTML visualisation.
nessie-simple-visualizer-plugin exposes a single action — visualise_graph — which accepts a graph object and returns a self-contained HTML string that renders the graph visually in any browser or webview.
Renders a graph data structure as an HTML visualisation.
| Field | Details |
|---|---|
| Action | visualise_graph |
| Payload | Graph |
| Returns | String — HTML content |
| Side effects | None |
| Setup required | None |
{
<Graph>
}The Graph object is an object described in nessie-api.
A String containing a complete, self-contained HTML document (or embeddable HTML fragment) that renders the supplied graph. This can be written to a file, injected into a <div>, or loaded inside an <iframe>.
const result = await block.run("visualise_graph", Graph(name));
// result is an HTML string — render it however you like
document.getElementById("graph-container").innerHTML = result;Install directly from the GitHub repository using pip:
pip install git+https://github.com/Nessie-org/nessie-simple-visualizer-plugin.gitTo pin to a specific branch:
# Latest from main
pip install git+https://github.com/Nessie-org/nessie-simple-visualizer-plugin.git@mainOr add it to your requirements.txt:
git+https://github.com/Nessie-org/nessie-simple-visualizer-plugin.git
No setup or configuration is required after installation. The block has no external dependencies that need to be authenticated before use.
https://github.com/Nessie-org/nessie-simple-visualizer-plugin
See LICENSE for details.