Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Tooltips

Since 0.1.0-alpha.22
Each series' value for the item under the pointer or keyboard focus, said to screen readers, from a template of your own if you like.

The members for tooltips, and the types they use. Every member of IzzyBlazor.Chart<TItem> is on the Chart API.

Properties (2)

Tooltipbool?Added in 0.1.0-alpha.22

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.PopoverAdded in 0.1.0-alpha.22

The 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>>? requiredAdded in 0.1.0-alpha.22

The 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.

ContentRenderFragment?

Tooltip content in place of Text. Inline content only, nothing interactive.

PlacementPlacement = Placement.Top

Where 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.

Types (2)

ChartDataTable

enum

How a chart offers its values as a table.

ChartDataTable values
ValueDescription
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

class

What a ChartTooltip<T> draws from: the item under the pointer (or keyboard focus) and each series' value for it.

ChartTooltipContext members
MemberDescription
Item TItem

The item.

Index int

The item's place in the chart's Items, from 0.

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.

Connection lost

Rejoining the server…