DeepWorks Studios Blazor Component Library

Demo user Administrator ยท Blazor Server Library 20261206222504-6e8ff32.dirty

Chart features

What the area, bar, line, pie, radar and radial bar charts share: axes and constant-size labels for a flat list, smoothed lines and areas, the data table for screen readers, the picture export, edge cases in the data, and charts inside tabs, dialogs and resized containers. The API reference below lists the parameters of all six charts; each chart page lists its own.

API Reference

Axes for a Flat List

A flat ChartData list looks as it always did unless asked: ShowAxes adds the value and category axes without moving the drawing.

JanFebMarAprMayJunJulAugSepOctNovDec

12 values, from 42 to 80

Chart
LabelValue
Jan42
Feb45
Mar51
Apr48
May56
Jun61
Jul58
Aug55
Sep63
Oct68
Nov72
Dec80
North South East West

4 values, from 190 to 410

Chart
LabelValue
North340
South275
East410
West190
North South East West

4 values, from 190 to 410

Chart
LabelValue
North340
South275
East410
West190
Show Code
ChartFeatures.razor

<DwsSwitch Name="ChartDemo_FlatAxes_Switch" Class="mb-2" @bind-Value="_flatAxes" Label="ShowAxes" />
<div class="row g-3">
    <div class="col-12 col-lg-6"><DwsChartLine Name="ChartDemo_FlatAxesLine" ChartData="@_axesFlatLineData" ShowAxes="@_flatAxes" ValueAxisTitle="Signups" Height="280" WithLegend="false" /></div>
    <div class="col-12 col-lg-6"><DwsChartBar Name="ChartDemo_FlatAxesBar" ChartData="@_axesFlatBarData" ShowAxes="@_flatAxes" ValueAxisTitle="Orders" CategoryAxisTitle="Region" Height="280" WithLegend="false" /></div>
    <div class="col-12 col-lg-6"><DwsChartBar Name="ChartDemo_FlatAxesBarH" ChartData="@_axesFlatBarData" Orientation="DwsLayoutOrientation.Horizontal" ShowAxes="@_flatAxes" Height="280" WithLegend="false" /></div>
</div>

@code {
    private bool _flatAxes = true;

    private static readonly string[] _months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
    private static readonly double[] _signups = [42, 45, 51, 48, 56, 61, 58, 55, 63, 68, 72, 80];

    private readonly DwsChartLineData _axesFlatLineData = new()
    {
        DataElements = [.. _months.Select((month, index) => new DwsChartLineDataElement(month, _signups[index], "var(--primary)"))]
    };

    private readonly DwsChartBarData _axesFlatBarData = new()
    {
        DataElements =
        [
            new DwsChartBarDataElement("North", 340, "var(--primary)"),
            new DwsChartBarDataElement("South", 275, "var(--warning)"),
            new DwsChartBarDataElement("East", 410, "var(--success)"),
            new DwsChartBarDataElement("West", 190, "var(--info)")
        ]
    };
}

Bar Chart (Data Table)

Every SVG chart names its drawing, describes it with a one-line summary and renders its data as a table for screen readers. ShowDataTable shows that table under the chart as well.

Monthly sales
Category A Category B Category C

3 values, from 20 to 50

Monthly sales
LabelValue
Category A30
Category B50
Category C20
Show Code
ChartFeatures.razor

<DwsChartBar Name="ChartDemo_Chart03b" Title="Monthly sales" ChartData="@_barChartData" Height="200" WithLegend="false" ShowDataTable="true" />

@code {
    private readonly DwsChartBarData _barChartData = new()
    {
        DataElements =
        [
            new DwsChartBarDataElement("Category A", 30, "#FF6384"),
            new DwsChartBarDataElement("Category B", 50, "#36A2EB"),
            new DwsChartBarDataElement("Category C", 20, "#FFCE56")
        ]
    };
}

Charts in Tabs

Charts in tabs that are hidden when the page renders draw themselves when their tab is shown.

P1P2P3P4P5P6

6 values, from 9 to 24

Chart
LabelValue
P112
P218
P39
P424
P515
P621
Show Code
ChartFeatures.razor

<DwsTabGroup Name="ChartDemo_CompositionTabs">
    <DwsTab Name="ChartDemo_CompositionTab_Line" Title="Line">
        <DwsChartLine Name="ChartDemo_CompositionTabLine" ChartData="@_liveLineData" ShowGrid="true" ShowTooltip="true" ShowValueLabels="true" Height="220" WithLegend="false" />
    </DwsTab>
    <DwsTab Name="ChartDemo_CompositionTab_Pie" Title="Pie">
        <DwsChartPie Name="ChartDemo_CompositionTabPie" ChartData="@_edgePieData" ShowTooltip="true" ShowPercentageLabels="true" Height="220" WithLegend="true" />
    </DwsTab>
    <DwsTab Name="ChartDemo_CompositionTab_Bar" Title="Bar">
        <DwsChartBar Name="ChartDemo_CompositionTabBar" ChartData="@_edgeBarData" ShowValueLabels="true" Height="220" WithLegend="false" />
    </DwsTab>
</DwsTabGroup>

@code {
    private readonly DwsChartLineData _liveLineData = new()
    {
        DataElements =
        [
            new DwsChartLineDataElement("P1", 12, "#4e79a7"), new DwsChartLineDataElement("P2", 18, "#4e79a7"),
            new DwsChartLineDataElement("P3", 9, "#4e79a7"), new DwsChartLineDataElement("P4", 24, "#4e79a7"),
            new DwsChartLineDataElement("P5", 15, "#4e79a7"), new DwsChartLineDataElement("P6", 21, "#4e79a7")
        ]
    };
    private readonly DwsChartPieData _edgePieData = new()
    {
        DataElements =
        [
            new DwsChartPieDataElement("Jan", 40, "#4e79a7"), new DwsChartPieDataElement("Feb", 25, "#f28e2b"),
            new DwsChartPieDataElement("Mar", 15, "#e15759")
        ]
    };

    private readonly DwsChartBarData _edgeBarData = new()
    {
        DataElements =
        [
            new DwsChartBarDataElement("Jan", 40, "#4e79a7"), new DwsChartBarDataElement("Feb", -25, "#f28e2b"),
            new DwsChartBarDataElement("Mar", 15, "#e15759")
        ]
    };
}

Interface-Description

Name Typ Parameters Description
ZoomToAsync Task int firstIndex, int lastIndex DwsChartLine / DwsChartArea. Shows the categories from firstIndex to lastIndex (positions in the category list or the flat list). Ends beyond the series are cut back to it. Works without AllowZoom too.
ResetZoomAsync Task DwsChartLine / DwsChartArea. Shows everything again.
IsZoomed bool DwsChartLine / DwsChartArea (a property). Whether the chart shows only a part of its series.
ExportSvgAsync Task<string?> All six charts (also DwsChartDoughnut and DwsChartPolarArea). A picture of the chart as it is on screen, as SVG markup: the drawing with the theme's colours and the fonts written into it, the title, the legend and the HTML texts drawn in where they stand, on a rectangle in the colour of the surface the chart lies on. Its size is the chart's size on screen in CSS pixels. Null when there is no picture (not interactive, no data, hidden). Not exported: a tooltip that happens to be open is left out; a label cut off with an ellipsis on screen is written in full; CSS transforms on marks (a hover effect) are not carried over.
DownloadSvgAsync Task string? fileName All six charts. Downloads the picture of ExportSvgAsync() as an .svg file. Null names the file after the chart's title, else its Name.
DownloadPngAsync Task string? fileName, double scale All six charts. Downloads the picture as a .png file, scale times the chart's size on screen (2 is sharp on a high-density screen and in print; at most 8). Null names the file after the chart's title, else its Name. Text is drawn in the fonts installed on the device: a web font of the page is not available to the picture.
IsSliceVisible bool int index DwsChartPie only. Whether the slice at this position (of the flat list, or the category of SeriesData) is shown, i.e. not hidden through its legend entry.
Name Typ Default Description
Width int? null Chart width in pixels. If null, component width is determined by layout/container.
Height int? null Chart height in pixels. If null, component height is determined by layout/container.
WithLegend bool true When true, chart legend is rendered.
ShowDataTable bool false Shows the chart data as a table under the drawing. The same table, a one-line summary and an accessible name for the drawing are always rendered for screen readers (Pie, Bar, Line, Area, Radar, RadialBar).
ChartData DwsChartPieData? / DwsChartBarData? / DwsChartLineData? / DwsChartAreaData? / DwsChartRadarData? / DwsChartRadialBarData? null Strongly typed data source for each chart component (pie/bar/line/area/radar/radialbar).
Orientation DwsLayoutOrientation DwsLayoutOrientation.Vertical Available on DwsChartBar only. Controls vertical or horizontal bar rendering.
Title string? null DwsChartPie/DwsChartBar/DwsChartLine/DwsChartArea/DwsChartRadar/DwsChartRadialBar only. Optional title rendered above the chart.
ShowGrid bool false (pie) / true (bar/line/area/radar) DwsChartPie/DwsChartBar/DwsChartLine/DwsChartArea/DwsChartRadar only. Renders a grid: lines behind bar/line/area charts, rings behind a radar and over a pie's slices.
GridLineCount int 3 (pie) / 4 (bar/line/area/radar) DwsChartPie/DwsChartBar/DwsChartLine/DwsChartArea/DwsChartRadar only. Number of grid rings/lines rendered when ShowGrid is true.
ShowGridValues bool true DwsChartRadar only. Prints the value each grid ring stands for beside the first axis.
ShowTooltip bool true DwsChartPie/DwsChartBar/DwsChartLine/DwsChartArea/DwsChartRadar/DwsChartRadialBar only. Shows a floating tooltip while hovering a slice/bar/point/ring.
ShowPercentageLabels bool true DwsChartPie only. Shows each slice's share of the total as a percentage label (suppressed for very thin slices).
ShowOutsideLabels bool false DwsChartPie only. With ShowPercentageLabels: a slice below 3% (too thin for a label inside it) gets its percentage beside the pie with a leader line; neighbouring labels are spread apart, and one that no longer fits beside the pie is left out. The pie is drawn smaller to make room (about two thirds of the width); a pie without a thin slice is not changed. Hidden in plots narrower than 200 px.
ShowValueLabels bool true DwsChartBar/DwsChartLine/DwsChartArea/DwsChartRadar/DwsChartRadialBar only. Shows each bar's/point's/ring's raw value or percentage as a label. A radial bar chart with a single ring shows its percentage large in the middle.
ShowCrosshair bool true DwsChartLine only. The pointer does not have to be on a point: anywhere in the plot the point nearest to it horizontally becomes the hovered one (its tooltip shows), and a dashed crosshair marks its position and value. Clicks, OnPointPointerEnter and OnPointPointerLeave stay with the points themselves. False restores hovering the points only.
SeriesColor string? null DwsChartLine/DwsChartArea/DwsChartRadar only. Fill/stroke color of the series line/area/polygon; falls back to the theme primary color when not set.
ColorSelector Func<TDataElement, int, string>? null DwsChartPie/DwsChartBar/DwsChartLine/DwsChartArea/DwsChartRadar/DwsChartRadialBar only. Per-element color override for slices/bars/points/rings/legend; falls back to the element's Color when not set.
LegendMetadataFormatter Func<TDataElement, string?>? null DwsChartPie/DwsChartBar/DwsChartLine/DwsChartArea/DwsChartRadar/DwsChartRadialBar only. Formats an element's Metadata for display in the legend/tooltip; defaults to joining "key: value" pairs.
MaxValue double 100 DwsChartRadialBar only. The value each ring is measured against (its 100% mark).
ShowTrack bool true DwsChartRadialBar only. Renders a faint full-circle track behind each ring's arc.
RingThickness double 14 DwsChartRadialBar only. Stroke width of each ring, in SVG units on a 200x200 viewBox.
RingGap double 6 DwsChartRadialBar only. Gap between adjacent rings, in SVG units.
MinWidth / MaxWidth / MinHeight / MaxHeight int? null DwsChartRadialBar only. Additional min/max sizing bounds applied alongside Width/Height.
SeriesData DwsChartSeriesData? null All six charts. Categories with one or more named series (DwsChartSeries: Name, Color / CustomColor, Values by position or ValuesByCategory). When it holds a series it is drawn instead of ChartData: one line (DwsChartLine), area (DwsChartArea), group or stack of bars (DwsChartBar) or polygon (DwsChartRadar) per series on shared axes; a ring per series, outermost first (DwsChartPie); a group of rings per category (DwsChartRadialBar). A null / NaN value is no value. The flat ChartData list keeps working and renders as before.
AllowSeriesToggle bool true With SeriesData: the legend entries are toggle buttons that show or hide their series (click, Enter, Space); the axis follows the visible series.
ConstantSizeLabels bool? null (on) All six charts. Draws value, percentage, axis and category labels as HTML over the drawing, at one readable size at any chart width, instead of SVG text that scales with the drawing. Null: on with SeriesData, off for a flat ChartData list (whose SVG labels keep the classes dws-chart-value-label / dws-chart-percentage-label).
Stacked bool false DwsChartArea/DwsChartBar with SeriesData. Stacks the series on each other instead of drawing the areas over each other / the bars side by side.
StackedPercent bool false DwsChartArea/DwsChartBar with SeriesData. Stacks the series as shares of each category's total (0 to 100 %). Implies Stacked.
ShowAxes bool? null DwsChartLine/DwsChartArea/DwsChartBar. Shows the value axis (round tick labels) and the category axis (labels that turn or thin out when crowded); the grid lines then sit on the ticks. Null: on with SeriesData, off for a flat ChartData list. Switching it on for a flat list does not move its drawing.
ValueAxisTitle / CategoryAxisTitle string? null DwsChartLine/DwsChartArea/DwsChartBar. Titles beside the axes, shown while the axes are shown.
AxisTickCount int 5 DwsChartLine/DwsChartArea/DwsChartBar. About how many values the value axis labels (2 to 20); it picks round steps near it.
AxisMin / AxisMax double? null DwsChartLine/DwsChartArea/DwsChartBar with SeriesData. Fixed ends of the value axis. Null: zero and the data's extremes, widened to a round tick.
CategoryLabelStep int? null DwsChartLine/DwsChartArea/DwsChartBar. Labels every n-th category. Null labels all while they fit and thins them out beyond 24.
Fill bool false DwsChartLine/DwsChartArea/DwsChartBar (vertical). The drawing takes the chart's measured width and Height instead of a square in the middle of a wide card. Bars stretch (at most 56 px wide each, so a single category is no slab); lines and areas get a viewBox of the plot's own ratio, so points stay round and strokes keep their width. Tooltips and HTML labels stay on the marks; category labels thin out by the measured width. A phone-sized chart keeps its usual layout; dense bars that scroll sideways do not fill. Horizontal bars always fill.
LegendPosition DwsChartLegendPosition DwsChartLegendPosition.Right DwsChartPie only. Right / Left: beside the pie, and below it on screens narrower than 576px (unless LegendPositionFixed). Top / Bottom: above or below the pie, the entries as a wrapping row. When the legend is stacked, Height is the height of the pie alone, so a long legend does not shrink it.
Smoothing DwsChartSmoothing DwsChartSmoothing.None DwsChartLine/DwsChartArea. How the points of a series are joined: None (straight lines, the markup as before: polyline / polygon), Monotone (a curve through every point that never rises above or falls below the two values it joins, so a peak is exactly as high as its value and a flat stretch stays flat; drawn as a path) or Step (each value held around its category, changing halfway to the next). A missing value breaks a curve as it breaks a straight line; the points, the tooltip, the crosshair and the keyboard stay on the real values. A series can set its own with DwsChartSeries.Smoothing (null = the chart's). In a stacked area chart the bottom edge of a band follows the top edge of the band under it.
AllowZoom bool false DwsChartLine / DwsChartArea. Lets the user zoom into a long series along the category axis and move along it: Ctrl / Cmd + mouse wheel zooms around the pointer (the plain wheel too while the plot has the keyboard focus), two fingers pinch and move, dragging moves a zoomed plot; + and - zoom, 0 shows everything, and with the focus on the plot itself Left / Right move it. The plot becomes a Tab stop. Categories outside the part shown have no point, label or tooltip; their lines and areas run on to the edge and are cut off there. Zooming in far enough brings back value labels a long series does not print. Needs interactivity.
MaxZoom double 20 DwsChartLine / DwsChartArea with AllowZoom. How far the user can zoom in: the smallest part of the category axis shown is one in this many, and never less than two steps of it.
ShowZoomReset bool true DwsChartLine / DwsChartArea with AllowZoom. Shows a button in the corner of the plot that shows everything again, while the chart is zoomed.
FixedValueAxisOnZoom bool false DwsChartLine / DwsChartArea. False fits the value axis to the values that are shown (and the one before and after them); true keeps the value axis of the whole series, so heights can be compared between two parts of it. AxisMin / AxisMax still fix an end.
AllowSliceToggle bool false DwsChartPie only. Makes the legend entries of the slices (a flat list) or of the categories (SeriesData) toggle buttons with aria-pressed: a click, Enter or Space hides the slice - in every ring - and the percentages of the others are worked out again; the next one shows it again. The last slice that is shown cannot be hidden. OnLegendItemClick is still raised. The ring entries of SeriesData go on toggling their series (AllowSeriesToggle).
LabelPosition DwsChartPieLabelPosition DwsChartPieLabelPosition.Inside DwsChartPie only. Inside: the percentages stand in the slices. Outside: all of them stand beside the pie with leader lines - for a flat list every slice, for SeriesData the slices of the outermost ring (the rings inside it keep their labels inside). Labels on one side are spread apart so none covers another; one that no longer fits, or whose slice is narrower than OutsideLabelMinAngle, is left out and keeps its legend entry, tooltip and accessible name. The pie is drawn smaller to make room. Needs ShowPercentageLabels. ShowOutsideLabels (thin slices only) now applies to the outermost ring of SeriesData too.
OutsideLabelMinAngle double 4 DwsChartPie with LabelPosition Outside. The smallest angle of a slice, in degrees, that still gets a label.
LegendPosition DwsChartLegendPosition DwsChartLegendPosition.Auto DwsChartPie only. Right / Left / Auto: beside the pie while the chart itself is at least 576px wide, below it in a narrower chart - a phone, or a narrow card on a desktop (unless LegendPositionFixed keeps Right / Left beside). Top / Bottom: above or below the pie. On a phone-sized chart the legend is a compact grid of entries; long names end in an ellipsis and give the full text as their title. When the legend is stacked, Height is the height of the pie alone, so a long legend does not shrink it.
LegendPositionFixed bool false DwsChartPie only. Keeps a Left or Right legend beside the pie on phones too.
EmptyContent RenderFragment? null DwsChartPie/DwsChartRadar/DwsChartRadialBar. Shown instead of the default "no data" state when there is nothing to draw (not while loading).
IsLoading bool false DwsChartPie/DwsChartRadar/DwsChartRadialBar. Shows the loading state (spinner and message) instead of the drawing, e.g. while the page fetches the data.
Caption string? null DwsChartPie/DwsChartRadar/DwsChartRadialBar. A sentence under the chart (<p class="dws-chart-caption">) - the takeaway or the source; the drawing's aria-describedby points at it.
AxisValueFormatter Func<double, string>? null DwsChartBar/DwsChartLine/DwsChartArea. Writes the tick labels of the value axis in the application's own format ("1.234,5 €", fixed decimals) instead of compact numbers ("1.2K"). Receives the tick's value; the "%" of a 100 % stacked chart is then not appended. Pass a method or a delegate kept in a field - a lambda written in the markup is new with every render and makes the chart work its drawing out again.
ValueFormat DwsChartValueFormatPreset Compact DwsChartBar/DwsChartLine/DwsChartArea. How values are written on the axis, the value labels (short form) and in the tooltip (full form), in the chart's culture: Compact ("1.2K" / "1,2 Tsd."), Number ("1,234.5"), Bytes (binary steps: "1.5 MB"), Duration (the value in seconds: "450 ms", "3 min 20 s") or Percent (45 = "45%" / "45 %"). AxisValueFormatter still wins for the ticks. The formatter is public for every chart: DwsChartValueFormat.Format(value, preset, culture, full).
Caption string? null DwsChartBar/DwsChartLine/DwsChartArea. A sentence under the chart (p.dws-chart-caption: what it shows, the source, the period); the drawing's aria-describedby names it, so screen readers read it with the chart.
IsLoading bool false DwsChartBar/DwsChartLine/DwsChartArea. The data is still loading: the chart shows its loading state (spinner and "Loading chart...") instead of the drawing or the empty content.
EmptyContent RenderFragment? null DwsChartBar/DwsChartLine/DwsChartArea. Shown instead of the drawing when there is nothing to draw (no data, or fewer than two points of a line or area). Null shows the chart's icon and "No data available".
SeriesData.CategoryDates List<DateTime>? null DwsChartBar/DwsChartLine/DwsChartArea (a property of DwsChartSeriesData). A date axis: one date per category. While Categories is empty the labels are written from the dates in the chart's culture, in the unit they are apart - "14:00" for hours (with the day where it changes), "Mar 9" / "9. März" for days and weeks, "Mar" for months (with the year at the first and at January), "2027" for years - and thinned to the measured width; the tooltip and the accessible names carry the full date.
ShowCrosshair bool true DwsChartArea only. As on the line chart: anywhere in the plot the nearest category is the hovered one (a full-height band per category), a dashed line marks it and the tooltip lists every series there.
(touch) DwsChartBar/DwsChartLine/DwsChartArea. A tap anywhere in the plot shows the nearest category's tooltip (every series there) and keeps it; a tap outside the chart, Escape or a second tap on the category closes it. Points and bars take a finger about 24 px wide. On a phone the legend goes under the drawing, value labels that would collide are left out (the highest and lowest of each series stay) and category labels are thinned to the measured width instead of turned. Dense vertical bars that would get thinner than 4 px make the plot scroll sideways inside the chart while the value axis stays. AllowZoom on a touch screen: a range brush with two handles under the plot sets the part shown; a finger on the drawing scrolls the page.
BarCornerRadius double 0 DwsChartBar only. Rounds the corners of the bars, in units of the drawing's viewBox (about pixels at the chart's natural size). The browser limits it to half of a bar's shorter side, so thin bars become pills. Zero or less: square corners and no attribute in the markup.
ScaleMaximum double? null DwsChartRadar only. A fixed value for the outer ring, so that several radar charts side by side share one scale and can be compared (each otherwise scales to its own highest value). A value above it is drawn on the outer ring. Null, zero or a negative number: the scale follows the data.
ShowValueAxis bool true DwsChartRadialBar only. Draws a value axis around the outer ring: tick marks and values for the scale from 0 to MaxValue in round steps, from 12 o'clock clockwise like the rings (MaxValue itself falls on 0 and is left out). The rings move inwards to make room. Hidden from assistive technology; the values stay in the rings' accessible names and the data table.
ValueAxisTickCount int 5 DwsChartRadialBar with ShowValueAxis. Approximate number of ticks of the value axis, MaxValue included; the steps are rounded (1, 2, 2.5, 5 times a power of ten).
ValueAxisFormatter Func<double, string>? null DwsChartRadialBar with ShowValueAxis. Formats the values of the value axis; null writes compact numbers ("1.2K"). Pass a method or a delegate kept in a field.
Name Typ Description
OnItemSelected EventCallback<string> Triggered when a chart segment/bar/point is selected. Returns the selected item key/label.
OnBarClick EventCallback<DwsChartBarItemEventArgs> DwsChartBar only. Triggered when a bar is clicked.
OnBarPointerEnter EventCallback<DwsChartBarItemEventArgs> DwsChartBar only. Triggered when the pointer enters a bar.
OnBarPointerLeave EventCallback<DwsChartBarItemEventArgs> DwsChartBar only. Triggered when the pointer leaves a bar.
OnSliceClick EventCallback<DwsChartPieItemEventArgs> DwsChartPie only. Triggered when a slice is clicked.
OnSlicePointerEnter EventCallback<DwsChartPieItemEventArgs> DwsChartPie only. Triggered when the pointer enters a slice.
OnSlicePointerLeave EventCallback<DwsChartPieItemEventArgs> DwsChartPie only. Triggered when the pointer leaves a slice.
OnPointClick EventCallback<DwsChartLineItemEventArgs> / EventCallback<DwsChartAreaItemEventArgs> / EventCallback<DwsChartRadarItemEventArgs> DwsChartLine/DwsChartArea/DwsChartRadar only. Triggered when a point is clicked.
OnPointPointerEnter EventCallback<DwsChartLineItemEventArgs> / EventCallback<DwsChartAreaItemEventArgs> / EventCallback<DwsChartRadarItemEventArgs> DwsChartLine/DwsChartArea/DwsChartRadar only. Triggered when the pointer enters a point.
OnPointPointerLeave EventCallback<DwsChartLineItemEventArgs> / EventCallback<DwsChartAreaItemEventArgs> / EventCallback<DwsChartRadarItemEventArgs> DwsChartLine/DwsChartArea/DwsChartRadar only. Triggered when the pointer leaves a point.
OnRingClick EventCallback<DwsChartRadialBarItemEventArgs> DwsChartRadialBar only. Triggered when a ring is clicked.
OnRingPointerEnter EventCallback<DwsChartRadialBarItemEventArgs> DwsChartRadialBar only. Triggered when the pointer enters a ring.
OnRingPointerLeave EventCallback<DwsChartRadialBarItemEventArgs> DwsChartRadialBar only. Triggered when the pointer leaves a ring.
OnLegendItemClick EventCallback<DwsChartBarItemEventArgs> / EventCallback<DwsChartPieItemEventArgs> / EventCallback<DwsChartLineItemEventArgs> / EventCallback<DwsChartAreaItemEventArgs> / EventCallback<DwsChartRadarItemEventArgs> / EventCallback<DwsChartRadialBarItemEventArgs> DwsChartPie/DwsChartBar/DwsChartLine/DwsChartArea/DwsChartRadar/DwsChartRadialBar only. Triggered when a legend row is clicked.
OnSeriesToggle EventCallback<DwsChartSeriesToggleEventArgs> With SeriesData: raised after the legend showed or hid a series (SeriesIndex, Series, Visible). The click, pointer and legend events of every chart carry SeriesIndex and SeriesName (0 and null for a flat list).
OnViewChanged EventCallback<DwsChartLineViewChangedEventArgs> / EventCallback<DwsChartAreaViewChangedEventArgs> DwsChartLine / DwsChartArea. Raised when the part of the category axis that is shown changed, by a gesture, the reset button or a method: FirstIndex / LastIndex and FirstCategory / LastCategory of the categories shown, Start / End (the part as shares of the whole axis, 0 to 1), ValueMin / ValueMax of the value axis as drawn, IsZoomed.
OnSliceToggle EventCallback<DwsChartPieSliceToggleEventArgs> DwsChartPie with AllowSliceToggle. Raised after a legend entry showed or hid a slice: Index (position in the flat list, or the category), Element, Visible.
Name Typ Default Description
Element ElementReference The associated web component. May be null if accessed before the component is rendered.
ComponentGuid Guid Unique identifier for the component.
TypeString string The name of the component type, obtained from reflection.
Authorized_RegisterEnabled bool false Indicates whether this component is enabled through a permission registry.
Authorized_RegisterSelected bool false Indicates whether this component is selected in permission selection mode.
GetInitializedState bool false Returns whether the component is initialized.
GetRenderModeState DwsRenderMode Returns the current render mode.
GetComponentState DwsComponentStateType Returns the current component state.
GetIsInteractiveState bool false Returns whether the component is interactive.
GetIsPrerenderingState bool false Returns whether the component is prerendering.
GetComponentLoadingState bool false Returns whether the component is loading.
IsFormBusy bool false Whether the DwsForm (or DwsFormBusyRegion) around the component is locked because its submit handler is running. The state itself is the cascaded FormBusyState (IDwsFormBusyState).
Name Typ Parameters Description
DebugInfo void Logs debug information about the component.
UpdateState void Updates the component's state and triggers StateHasChanged.
UpdateStateAsync Task Asynchronously updates the component's state and triggers StateHasChanged.
Dispose void Disposes the component and releases resources.
FocusAsync ValueTask bool containedInScrollableList Sets focus to the component's element.
Name Typ Default Description
Name string Required unique identifier for the component within its container.
Visible bool true Determines if the component is visible in the UI.
Disabled bool false Disables the form control, ensuring it doesn't participate in form submission.
ComponentNameSpace string The namespace for permission-based access control.
PermissionKey string? null A stable key that takes the place of Name in the generated permission namespace (Page.PermissionKey): the stored permission survives a rename, and components that share a key share one permission entry. Null: keyed by Name. Read once, when the component registers; an explicit ComponentNameSpace wins.
Class string Optional CSS class names.
Style string Optional in-line styles.
Tag object An optional user-defined object to store any additional data with the component.
BackReference DwsReference A reference to the enclosing component.
ID string The HTML ID attribute for the component.
AdditionalAttributes Dictionary<string, object> Additional HTML attributes for the component's root element.
IgnorePermissionChecks bool false Bypasses all permission checks for this component.
IgnorePermissionSelection bool false Ignore permission selection mode for this component.
IgnoreFormBusy bool false Takes the component out of the submit lock of the DwsForm (or DwsFormBusyRegion) around it: IsFormBusy stays false for it.
Name Typ Description
OnInitializedCallbackStarted EventCallback Callback when OnInitialized starts.
OnInitializedCallback EventCallback Callback during OnInitialized.
OnInitializedCallbackCompleted EventCallback Callback when OnInitialized completes.
OnInitializedAsyncCallbackStarted EventCallback Callback when OnInitializedAsync starts.
OnInitializedAsyncCallback EventCallback Callback during OnInitializedAsync.
OnInitializedAsyncCallbackCompleted EventCallback Callback when OnInitializedAsync completes.
OnIsComponentLoadingChanged EventCallback<bool> Callback when IsComponentLoading changes.
OnCurrentRenderModeChanged EventCallback<DwsRenderMode> Callback when CurrentRenderMode changes.
OnComponentStateChanged EventCallback<DwsComponentStateType> Callback when ComponentState changes.
An error has occurred. This app may no longer respond until reloaded.