Class RadzenStackedBarSeries<TItem>
Renders bar series in RadzenChart.
Implements
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenStackedBarSeries<TItem> : CartesianSeries<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IChartSeries, IDisposable, IChartStackedBarSeries, IChartBarSeries
Type Parameters
Name | Description |
---|---|
TItem | The type of the series data item. |
Constructors
RadzenStackedBarSeries()
Renders bar series in RadzenChart.
Declaration
public RadzenStackedBarSeries()
Properties
Color
Gets the color.
Declaration
public override string Color { get; }
Property Value
Type | Description |
---|---|
string | The color. |
Overrides
Fill
Specifies the fill (background color) of the bar series.
Declaration
[Parameter]
public string Fill { get; set; }
Property Value
Type | Description |
---|---|
string | The fill. |
FillRange
Gets or sets the color range of the fill.
Declaration
[Parameter]
public IList<SeriesColorRange> FillRange { get; set; }
Property Value
Type | Description |
---|---|
IList<SeriesColorRange> | The color range of the fill. |
Fills
Specifies a list of colors that will be used to set the individual bar backgrounds.
Declaration
[Parameter]
public IEnumerable<string> Fills { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<string> | The fills. |
LineType
Gets or sets the type of the line used to render the bar border.
Declaration
[Parameter]
public LineType LineType { get; set; }
Property Value
Type | Description |
---|---|
LineType | The type of the line. |
Stroke
Specifies the stroke (border color) of the bar series.
Declaration
[Parameter]
public string Stroke { get; set; }
Property Value
Type | Description |
---|---|
string | The stroke. |
StrokeRange
Gets or sets the color range of the stroke.
Declaration
[Parameter]
public IList<SeriesColorRange> StrokeRange { get; set; }
Property Value
Type | Description |
---|---|
IList<SeriesColorRange> | The color range of the stroke. |
StrokeWidth
Gets or sets the width of the stroke (border).
Declaration
[Parameter]
public double StrokeWidth { get; set; }
Property Value
Type | Description |
---|---|
double | The width of the stroke. |
Strokes
Specifies a list of colors that will be used to set the individual bar borders.
Declaration
[Parameter]
public IEnumerable<string> Strokes { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<string> | The strokes. |
Methods
BuildRenderTree(RenderTreeBuilder)
Renders bar series in RadzenChart.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
RenderTreeBuilder | __builder |
Overrides
Contains(double, double, double)
Determines if the series contains the specified coordinates with a given tolerance.
Declaration
public override bool Contains(double x, double y, double tolerance)
Parameters
Type | Name | Description |
---|---|---|
double | x | The x. |
double | y | The y. |
double | tolerance | The tolerance. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
DataAt(double, double)
Returns the data at the specified coordinates;
Declaration
public override (object, Point) DataAt(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
double | x | The x. |
double | y | The y. |
Returns
Type | Description |
---|---|
(object, Point) |
Overrides
GetCategories()
Returns the category values
Declaration
protected override IList<object> GetCategories()
Returns
Type | Description |
---|---|
IList<object> |
Overrides
GetDataLabels(double, double)
Returns data chart position
Declaration
public override IEnumerable<ChartDataLabel> GetDataLabels(double offsetX, double offsetY)
Parameters
Type | Name | Description |
---|---|---|
double | offsetX | |
double | offsetY |
Returns
Type | Description |
---|---|
IEnumerable<ChartDataLabel> |
Overrides
Render(ScaleBase, ScaleBase)
Renders the series with the specified category and value scales.
Declaration
public override RenderFragment Render(ScaleBase categoryScale, ScaleBase valueScale)
Parameters
Type | Name | Description |
---|---|---|
ScaleBase | categoryScale | The category scale. |
ScaleBase | valueScale | The value scale. |
Returns
Type | Description |
---|---|
RenderFragment | RenderFragment. |
Overrides
TooltipStyle(TItem)
Gets the tooltip inline style.
Declaration
protected override string TooltipStyle(TItem item)
Parameters
Type | Name | Description |
---|---|---|
TItem | item | The item. |
Returns
Type | Description |
---|---|
string |
Overrides
TooltipTitle(TItem)
Gets the title of the tooltip displayed for this item.
Declaration
protected override string TooltipTitle(TItem item)
Parameters
Type | Name | Description |
---|---|---|
TItem | item | The item. |
Returns
Type | Description |
---|---|
string |
Overrides
TooltipValue(TItem)
Gets the value of the tooltip displayed for this item.
Declaration
protected override string TooltipValue(TItem item)
Parameters
Type | Name | Description |
---|---|---|
TItem | item | The item. |
Returns
Type | Description |
---|---|
string | System.String. |
Overrides
TransformCategoryScale(ScaleBase)
Transforms a category scale to new one.
Declaration
public override ScaleBase TransformCategoryScale(ScaleBase scale)
Parameters
Type | Name | Description |
---|---|---|
ScaleBase | scale | The scale. |
Returns
Type | Description |
---|---|
ScaleBase |
Overrides
TransformValueScale(ScaleBase)
Transforms a category scale to new one.
Declaration
public override ScaleBase TransformValueScale(ScaleBase scale)
Parameters
Type | Name | Description |
---|---|---|
ScaleBase | scale | The scale. |
Returns
Type | Description |
---|---|
ScaleBase |