Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Treemap

Since 0.1.0-alpha.22
Shows which parts take the biggest share of a total, such as the largest lines in a budget.

IzzyBlazor.TreemapChart<TItem> in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly and its doc comments.

Properties (31)

RefreshTimeSpan?Added in 0.1.0-alpha.22

How often the chart reads its data again, at least a second, such as Refresh="TimeSpan.FromSeconds(30)". On a static page the page (or RefreshFrom) is fetched again and the chart drawn from it, found by its id, which it then needs; on an interactive page OnRefresh is raised, for you to load new data. Not while the tab is hidden or the chart is off-screen, nor (static) while the pointer or focus is in it. Unlike Chart's, it has no Pause button.

RefreshFromstring?Added in 0.1.0-alpha.22

On a static page with Refresh: a lighter page to fetch than this one, which renders the same chart with the same id.

Drillstring?Added in 0.1.0-alpha.22

With ChartDrillLevel<T>s (in place of Name and Group): the page address's query value that holds the level ("drill" by default; give each chart that drills on a page its own).

HideBreadcrumbbool = falseAdded in 0.1.0-alpha.22

With drill-down levels: leaves out the breadcrumb above the chart.

AggregateDataAggregate = DataAggregate.SumAdded in 0.1.0-alpha.22

With drill-down levels, how each tile adds up its items' values: Sum by default, or Avg, Min, Max or Count.

ItemsIEnumerable<TItem>? requiredAdded in 0.1.0-alpha.22

The tiles, one item each: its name, its value and, with Group, its group.

NameExpression<Func<TItem, object?>>?Added in 0.1.0-alpha.22

Each tile's name, such as c => c.Service, written at its top left where it fits.

ValueExpression<Func<TItem, object?>> requiredAdded in 0.1.0-alpha.22

Each tile's size, such as c => c.Amount: any positive number. Its area is its share of the whole.

GroupExpression<Func<TItem, object?>>?Added in 0.1.0-alpha.22

Each tile's group, such as c => c.Category. A group's tiles sit together under a strip with its name, and take its color. Leave it out for one level of tiles.

ColorValueExpression<Func<TItem, object?>>?Added in 0.1.0-alpha.22

A second measure that colors the tiles, such as s => s.Change on a market map whose tiles are sized by market value: a scale of Palette's shades, as a HeatmapChart<T>'s, with a legend. Colors set with it throws.

Titlestring?Added in 0.1.0-alpha.22

The chart's title, such as "Cloud costs by service", shown above it as its caption. It also names the chart for screen readers. A chart needs a Title or TitledBy.

HideTitlebool = falseAdded in 0.1.0-alpha.22

Hides the title, which still names the chart for screen readers.

Downloadbool = falseAdded in 0.1.0-alpha.23

Shows a button across from the title that saves the chart as a PNG, named after its title, in the color scheme on screen. With JavaScript off there's no button.

TitleAlignChartAlign = ChartAlign.StartAdded in 0.1.0-alpha.22

Where the title sits: at the start by default (the left, in a left-to-right page); ChartAlign.Center or ChartAlign.End.

TitledBystring?Added in 0.1.0-alpha.22

The id of a heading already on the page that titles the chart, such as a card's, in place of Title: the chart takes its name from it and shows no title of its own.

ValueFormatstring?Added in 0.1.0-alpha.22

A .NET format string for the values, such as C0 or N0: on the tiles, in the tooltips and the table.

ColorFormatstring?Added in 0.1.0-alpha.22

A .NET format string for ColorValue, such as +0.0%;−0.0%;0.0%: in the legend, the tooltips and the table.

ColorsTreemapColors = TreemapColors.AutoAdded in 0.1.0-alpha.22

What colors the tiles: TreemapColors.Auto (the default) colors them by group with Group set, or each tile its own color without; TreemapColors.Group or TreemapColors.Item chooses (Group needs Group). ColorValue colors them by a value instead, and throws with Colors set.

PaletteChartPalette?Added in 0.1.0-alpha.22

The colors: the theme's eight by default, repeating past eight, or your own with Of; Shades and Diverging throw. With ColorValue, the scale: Shades of the primary color by default, Diverging for values above and below Midpoint, or your own ramp with Of; Colors throws.

Stepsint = 5Added in 0.1.0-alpha.22

With ColorValue, about how many classes its values fall into, each a shade: 5 by default, 2 to 9 (the scale rounds its bounds, so one more or fewer), or 0 for a continuous blend.

Midpointdouble?Added in 0.1.0-alpha.22

With ColorValue and a Diverging palette, the value the scale turns at: 0 by default.

Mindouble?Added in 0.1.0-alpha.22

With ColorValue, the scale's low end. Lower values take the first class.

Maxdouble?Added in 0.1.0-alpha.22

With ColorValue, the scale's high end. Higher values take the last class.

AspectRatiodouble = 2Added in 0.1.0-alpha.22

The chart's width over its height: 2 by default (twice as wide as tall); from 0.5 to 4. Under 30rem wide the chart is square. It keeps this shape at every width, so the tiles stay as square as they were laid out.

Labelsbool = trueAdded in 0.1.0-alpha.22

Writes each tile's name at its top left, where it fits. On by default; false leaves only the tiles (and the groups' strips).

Valuesbool = falseAdded in 0.1.0-alpha.22

Writes each tile's value under its name (with Labels), and each group's total beside its name. Off by default; the tooltips and the table have the values.

LegendChartLegend = ChartLegend.AutoAdded in 0.1.0-alpha.22

With ColorValue, where its scale goes: above the tiles by default (ChartLegend.Auto or ChartLegend.Top), ChartLegend.Bottom, or ChartLegend.None. Without it there's no legend: the tiles and groups are named.

LegendAlignChartAlign?Added in 0.1.0-alpha.22

With ColorValue, the legend's place along its edge: the start by default, the center or the end.

Tooltipbool = trueAdded in 0.1.0-alpha.22

A tooltip for the tile or group name under the pointer, and the arrow keys from tile to tile, each saying its value and shares (with IzzyBlazor's script; with JavaScript off, a hover title). On by default; false leaves them out. A ChartTooltip<T> writes your own.

DataTableChartDataTable = ChartDataTable.PopoverAdded in 0.1.0-alpha.22

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

ChildContentRenderFragment?Added in 0.1.0-alpha.22

A ChartTooltip<T> for your own tile tooltips.

Events (1)

OnRefreshEventCallbackAdded in 0.1.0-alpha.22Interactive only

On an interactive page with Refresh: raised at each interval, to load new data.

Types (6)

ChartAlign

enum

Where a chart's title or legend sits along its edge: for a title or a legend above or below, left, center or right (in a left-to-right page); for a legend beside the chart, top, middle or bottom.

ChartAlign values
ValueDescription
Start

At the start: the left (in a left-to-right page), or the top beside the chart.

Center

Centered.

End

At the end: the right (in a left-to-right page), or the bottom beside the chart.

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.

ChartLegend

enum

Whether a chart has a legend, and where it goes.

ChartLegend values
ValueDescription
Auto

A Chart's legend above it, under the title, when there are two series or more (a single series is named by the chart's title); a PieChart's beside the circle when there's room, and below it otherwise.

Top

Above the chart, even for one series.

Bottom

Below the chart, even for one series.

Start

Beside the chart on the start side (the left, in a left-to-right page), in a column; below 30rem wide, above it instead.

End

Beside the chart on the end side (the right, in a left-to-right page), in a column; below 30rem wide, below it instead.

None

No legend.

ChartPalette

class

The colors a Chart<T> or PieChart<T> gives its series or slices, or a Gauge its bands, in order: Colors (the default: the theme's palette, set with ChartPalette), one palette whatever the theme's (Contrast, OkabeIto, Calm), one series picked out with Emphasis, Shades of one color, Diverging between two, or your own with Of. Shades and diverging ramps are sampled for the number of series, so three get three even steps, and they turn round in dark mode, where the strongest color is the lightest.

ChartPalette members
MemberDescription
Colors

Distinct colors, for series that aren't in an order, such as regions or products. The default. A chart of exactly two, three or four series gets a set picked for that count, so every pair stays apart for color-blind readers (--ib-chart-of2-1 and on); any other count takes the theme's eight in order (--ib-chart-1 to --ib-chart-8). Which palette that is follows ChartPalette: Brand unless set, so the first series, or a chart's only one, is the brand color. The count is the series a chart defines, so hiding one never repaints the rest.

Contrast

The Contrast palette whatever the theme's: eight colors of one lightness, each 3:1 or more on the surface, with sets picked for two, three or four series. The same in every app: it doesn't follow the brand.

OkabeIto

The Okabe-Ito palette whatever the theme's: the widely used color-blind-safe set, seven colors and then gray.

Calm

The Calm palette whatever the theme's: muted colors, for dashboards read all day.

Emphasis(int index, Color? color)

One series in color and every other one in gray, for a chart that makes a point about one series, such as this year against earlier years or one store against the rest. The gray is the text color mixed into the surface, so it keeps 3:1 on the surface in both schemes and the other series stay readable as context. The grays are alike, so give the series names: the legend and tooltips tell them apart. On a line chart, define the picked series last so it's drawn on top.

Shades(Color color)

Light to dark shades of one color, for series in an order, such as age bands or plan tiers: the first series is the lightest. Past about six, shades are hard to tell apart.

Tints(Color color)

Light tints of one color up to the color itself, for ranges drawn as large areas, such as a LinearGauge's bands under a needle: the first is the lightest, the last the full color, with no black mixed in, so even the strongest stays the color. Tints mix toward the surface, so they follow the color scheme.

Diverging(Color low, Color high)

Two colors that meet at a neutral middle, for series on either side of one, such as answers from "Strongly disagree" to "Strongly agree": the first series is the strongest low, the last the strongest high, and with an odd count the middle one is gray.

Of(Color[] colors)

Your own colors, one per series in order; they repeat past the last, up to eight.

DataAggregate

enum

What a DataGrid column works out over a group of rows, or over all of them.

DataAggregate values
ValueDescription
Sum

The values added up. For numbers.

Avg

The mean of the values. For numbers.

Min

The lowest value. For numbers, dates, times and text.

Max

The highest value. For numbers, dates, times and text.

Count

How many rows.

Custom

The field's own AggregateBy.

TreemapColors

enum

What a TreemapChart<T> colors its tiles by, when they aren't colored by a value (ColorValue).

TreemapColors values
ValueDescription
Auto

By group when the chart has groups, by tile when it hasn't (the default).

Group

One color per group, every tile in it the same: the groups read as wholes.

Item

A color per tile, in the items' order, the palette starting again in each group: tells neighbors apart.

Connection lost

Rejoining the server…