Examples
Each GraphLink joins two node names with a Value; nodes appear in order of first mention and grow with their number of links.
Nodes gives each node a Group (colour and legend); Sort="Group" places each group side by side so links inside a group stay short.
Playground
<ArcDiagramChart
Title="Shared tickets between teams"
Links="@_shared" />
@code {
private readonly GraphLink[] _shared =
[
new("Support", "Billing", 34),
new("Support", "Platform", 21),
new("Support", "Product", 28),
new("Product", "Design", 40),
new("Product", "Platform", 18),
new("Platform", "Security", 15),
new("Platform", "Data", 12),
new("Data", "Billing", 9),
new("Security", "Support", 6),
new("Design", "Support", 5),
];
}API
<ArcDiagramChart>
DaisyBlazor.ChartsParameters
- AspectRatio double= 1.78
Width divided by height. The chart keeps this shape at any width; its text keeps its size.
- GroupColors IReadOnlyDictionary<
string, string> = nullOptional colour per group name (any CSS colour); other groups cycle through the theme palette.
- Links IReadOnlyList<
GraphLink> = []The connections. Node names come from Source and Target; links to the same node or without a positive Value are skipped.
- Nodes IReadOnlyList<
GraphNode> = nullOptional node list: sets the order and each node's Group (its colour), and adds nodes that have no links.
- RowHeight double?= null
Height of each row in px, for a chart that lays its categories out as rows (horizontal bars, a Gantt's lanes, a heatmap's rows…): its height then follows its number of rows instead of AspectRatio, so a long list keeps readable rows at any width. A chart, or an orientation, without rows ignores it.
- ShowLegend bool= true
Show a colour key for the node groups under the chart.
- ShowTitle bool= true
Draw Title as a visible heading above the chart (the default); false keeps it only as the chart's accessible name, for a chart inside a card that already has a heading.
- Sort ArcDiagramSort= ArcDiagramSort.Input
How the nodes are ordered on the baseline.
- Title string= null
Optional heading rendered above the chart; it is also the chart's accessible name.
- ValueFormat string= "{0:#,0.##}"
Format string for link values in tooltips, e.g. "{0:N0} calls".
- Width string= "100%"
CSS width of the chart wrapper.
- Class string= null
Additional CSS classes merged onto the w-full wrapper.
- Style string= null
Inline styles appended after the width on the wrapper.