Examples
Dimensions names the axes left to right; value i of each ParallelItem lines up with dimension i.
Highlight brings one item forward and fades the others; a NaN value breaks that item's line on its axis.
Playground
<ParallelCoordinatesChart
Title="Plan limits"
Dimensions="@_limits"
Items="@_plans" />
@code {
// Each axis has its own scale, so seats, gigabytes and calls per minute sit side by side.
private readonly string[] _limits = ["Seats", "Storage (GB)", "API calls / min", "Projects", "Support hours"];
private readonly ParallelItem[] _plans =
[
new("Starter", [5, 10, 60, 3, 8]),
new("Team", [25, 100, 300, 20, 24]),
new("Business", [100, 500, 1200, 100, 72]),
new("Scale", [250, 2000, 3000, 400, 168]),
];
}API
<ParallelCoordinatesChart>
DaisyBlazor.ChartsParameters
- AspectRatio double= 1.78
Width divided by height. The chart keeps this shape at any width; its text keeps its size.
- Dimensions IReadOnlyList<
string> = []The axis names, left to right. At least two are needed.
- Highlight string= null
Label of an item to bring forward; the other lines fade. Null shows all lines alike.
- Items IReadOnlyList<
ParallelItem> = []The items, one line each; value i of an item lines up with dimension i. A missing or NaN value breaks the line there.
- 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 legend naming each line.
- 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.
- Title string= null
Optional heading rendered above the chart; it is also the chart's accessible name.
- ValueFormat string= "{0:#,0.##}"
Format string for values in tooltips and the description, e.g. "{0:N0}".
- 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.