Tooltips
Since 0.1.0-alpha.22
The members for tooltips, and the types they use. Every member of
IzzyBlazor.Chart<TItem> is on the Chart API.
Properties (2)
Tooltipbool?Shows a tooltip with every series' value for the item under the pointer, or under keyboard focus on the chart, with script. By default it's on unless every series writes its values as Labels, which the tooltip would repeat; true or false decides. Off, the tooltips are left out of the page.
DataTableChartDataTable = ChartDataTable.PopoverThe values as a table: by default behind a "Show data" button that opens it over the chart; ChartDataTable.Collapsed puts it in a disclosure under the chart.
Parts (2)
Components written inside Chart, and the columns' members, which PropertyColumn, TemplateColumn and DynamicColumn share.
ChartTooltip<TItem>
A chart's tooltip content, in place of the item's argument and each series' value: <ChartTooltip Context="t">@t.Argument: @t.Points[0].Text</ChartTooltip>. It's drawn on the server for each item, so keep it to text and inline content (no buttons or links). The chart's Tooltip turns tooltips on or off.
ChildContentRenderFragment<ChartTooltipContext<TItem>>? requiredThe tooltip's content for one item.
Tooltip
Short text shown on hover and keyboard focus. With JavaScript off it is pure CSS; with JavaScript it moves to the top layer (popover="hint"), so overflow never clips it, and links itself to the trigger with aria-describedby.
Textstring?The tooltip text.
PlacementPlacement = Placement.TopWhere it appears. Defaults to Placement.Top.
DelayTimeSpan = TimeSpan.FromMilliseconds(300)How long the pointer rests on it before it appears. Defaults to 300 milliseconds. Keyboard focus shows it at once.
ChildContentRenderFragment?The element the tooltip describes, usually a button or link.
Plus 17 item props and 4 common props.
Types (2)
ChartDataTable
enumHow a chart offers its values as a table.
| Value | Description |
|---|---|
Popover | A "Show data" button under the chart that opens the table in a popover over it, so nothing on the page moves (the default). It works with JavaScript off. |
Collapsed | A "Show data" disclosure under the chart, closed until opened, that pushes what's below down: for a report read top to bottom, with the chart and table seen together. |
Visible | The table shows under the chart. |
None | No table, for a page that lists the values elsewhere. |
ChartTooltipContext
classWhat a ChartTooltip<T> draws from: the item under the pointer (or keyboard focus) and each series' value for it.
| Member | Description |
|---|---|
Item TItem | The item. |
Index int | The item's place in the chart's |
Argument string | The item's argument as the chart shows it, formatted as on the argument axis. |
Points IReadOnlyList<ChartTooltipPoint> | Each series' value for the item, in the chart's order. |