Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Histogram

Since 0.1.0-alpha.23
Counts numbers or dates in equal bins, to show how they spread.

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

Properties (17)

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

The value each item is counted by, such as o => o.DeliveryDays: a number or a date, or null to leave the item out.

BinsChartBins?Added in 0.1.0-alpha.23

How the values are cut into bins: Auto (the default), Count or Width. The width changes the picture, so try a few. Every histogram series on a chart takes the same bins.

Opacitydouble? (computed)Added in 0.1.0-alpha.23

How solid the bars are, from 0 to 1. Set, the bars are see-through, so the groups of a split series overlaid on one another show through, such as at 0.5. Defaults to opaque bars, 0.85 of the series color in light mode and 0.9 in dark.

AggregateDataAggregate = DataAggregate.SumAdded in 0.1.0-alpha.23

With ChartDrillLevel<T>s, how each level adds up its items' values: DataAggregate.Sum (the default), DataAggregate.Avg, DataAggregate.Min, DataAggregate.Max or DataAggregate.Count (the items with a value).

Namestring? (computed)Added in 0.1.0-alpha.23

The series' name, in the legend, the data table and each value's description. Defaults to the property's [Display] name, or its name in words.

SeriesByExpression<Func<TItem, object?>>?Added in 0.1.0-alpha.23

Splits the series into one per value of this, such as p => p.Device: each draws only its own items' values, is named by its value, and takes the next color and marker, in the order the values first appear. Color doesn't apply to a split series.

Colorstring? (computed)Added in 0.1.0-alpha.23

A CSS color, such as var(--ib-color-danger) or #0f766e. Defaults to the next of the chart palette's colors (--ib-chart-1, the brand color by default, to --ib-chart-8, or a set picked for two, three or four series).

LabelsChartLabels = ChartLabels.NoneAdded in 0.1.0-alpha.23

Writes each value beside its bar or point. Labels that would overlap others are left out at the widths where they would, and screen readers skip them: the data table has every value.

LabelFormatstring? (computed)Added in 0.1.0-alpha.23

A .NET format string for this series' labels, such as C0. Defaults to the values' own text.

LabelTextExpression<Func<TItem, object?>>?Added in 0.1.0-alpha.23

What each label says in place of its value, such as r => r.Region to name each bubble or point. Setting it turns the labels on (ChartLabels.Auto, unless Labels says otherwise), and the tooltip stays on for the values.

LabelOverlapChartLabelOverlap = ChartLabelOverlap.HideAdded in 0.1.0-alpha.23

What labels do when they'd overlap others: left out at those widths (ChartLabelOverlap.Hide, the default), or shown anyway (ChartLabelOverlap.Show).

TrendChartTrend = ChartTrend.NoneAdded in 0.1.0-alpha.23

Draws a trend through the values: a dashed line in the series' color, named "Revenue trend" (a moving average "Revenue, 7-day average") in the legend, tooltips and data table. ChartTrend.Linear, ChartTrend.Polynomial (of TrendOrder) or ChartTrend.MovingAverage (over TrendPeriod).

TrendOrderint = 2Added in 0.1.0-alpha.23

A polynomial trend's order, 2 (a parabola) to 6. Defaults to 2.

TrendPeriodint = 3Added in 0.1.0-alpha.23

How many values a moving average takes in, 2 or more. Defaults to 3.

TrendColorstring? (computed)Added in 0.1.0-alpha.23

The trend's CSS color, such as var(--ib-color-danger), used as given. Defaults to the series' color mixed toward the text color (darker in light mode, lighter in dark), so it reads over the series' own bars.

ValueAxisstring? (computed)Added in 0.1.0-alpha.23

The Name of the value axis the series is read off, for a measure in other units on a second axis at the end side, such as "margin". Defaults to the first value axis. Two charts side by side usually read better than one with two axes.

Hiddenbool = falseAdded in 0.1.0-alpha.23

Starts with the series hidden: the chart is drawn as if it weren't there, and it keeps its place in the legend, to show it again, and in the data table.

Events (0)

No events.

Types (5)

ChartBins

record

How a ChartHistogramSeries<T> cuts its values into bins: Auto, Count or Width. Bins are equal in width and start on round edges; the last takes in the largest value.

ChartBins members
MemberDescription
Auto

The default: about as many bins as Sturges' rule gives for the number of values (11 for 1,000), at the nearest round width (1, 2, 2.5 or 5 times a power of ten; for dates, a second to a week, then whole days).

Count(int count)

At most count bins, at the narrowest round width that covers the values in that many.

Width(double width)

Bins width wide, each starting on a multiple of it, such as ChartBins.Width(5) for 0–5, 5–10….

Width(TimeSpan width)

Bins of dates width long, such as ChartBins.Width(TimeSpan.FromDays(7)).

ChartLabelOverlap

enum

What a series's labels do when they'd overlap other labels.

ChartLabelOverlap values
ValueDescription
Hide

A label that would overlap one placed before it is left out at the widths where it would.

Show

Every label shows, overlapping or not. They're placed before other series' labels, which step around them. A label still needs room in the plot (or in its bar, inside).

ChartLabels

enum

Where a series writes each value beside its bar or point.

ChartLabels values
ValueDescription
None

No labels.

Auto

Placed by type: past a bar's end, in the middle of a stacked segment, above a point. A label with no room there moves inside the bar or below the point, or is left out.

Inside

Inside the bar, at its end (in the middle of a stacked segment), or below a point.

Outside

Past the bar's end, or above a point, moving inside or below when there's no room.

ChartTrend

enum

A trend drawn through a ChartSeriesBase<T>'s values.

ChartTrend values
ValueDescription
None

No trend.

Linear

The straight line that fits the values best (least squares).

Polynomial

A curve that fits the values best, of TrendOrder (2, a parabola, by default).

MovingAverage

Each value the average of the last TrendPeriod values (3 by default), which smooths out the ups and downs.

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.

Connection lost

Rejoining the server…