Interactive graph
Connections, neighborhoods, clusters, and weighted links among named entities.
- Purpose
- Explore relationships, neighborhoods, and topology among named entities.
- Use when
- Connections and clusters matter more than a fixed ordered comparison.
- Avoid when
- People need an exact path, complete adjacency, or deterministic positions.
- Equivalent data
- Pair the graph with a textual relationship summary or adjacency list.
Usage Example
@interactivegraph.Graph(interactivegraph.Config{
Label: "Service dependencies",
Nodes: []interactivegraph.Node{{Name: "API"}, {Name: "Database"}},
Links: []interactivegraph.Link{{Source: "API", Target: "Database", Value: 10}},
Layout: interactivegraph.LayoutForce,
Roam: interactivegraph.RoamEnabled,
Options: chart.ChartOptions{Title: &chart.TitleOptions{Text: "Service dependencies"}},
})Layouts
Choose a layout that makes the relationships readable; layout changes placement, not the underlying nodes and links.
Go API
v0.0.1The examples above cover behavior and composition. pkg.go.dev is the canonical reference for exported types, functions, methods, and Go documentation.
github.com/araihu/goshtoso-charts/components/interactive/graphEnabled, disabled, hidden, and omitted wrapper behavior, controls, export, and client transitions are shared by every chart. Review chart controls, then compare static/vector and interactive capabilities.