Class RadzenBarSeries<TItem>
Renders bar series in RadzenChart.
public class RadzenBarSeries<TItem> : CartesianSeries<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IChartSeries, IDisposable, IChartBarSeries
Type Parameters
TItem
The type of the series data item.
- Inheritance
-
CartesianSeries<TItem>RadzenBarSeries<TItem>
- Implements
- Inherited Members
Constructors
RadzenBarSeries()
public RadzenBarSeries()
Properties
Color
public override string Color { get; }
Property Value
Fill
Specifies the fill (background color) of the bar series.
[Parameter]
public string Fill { get; set; }
Property Value
- string
The fill.
FillRange
Gets or sets the color range of the fill.
[Parameter]
public IList<SeriesColorRange> FillRange { get; set; }
Property Value
- IList<SeriesColorRange>
The color range of the fill.
Fills
Specifies a list of colors that will be used to set the individual bar backgrounds.
[Parameter]
public IEnumerable<string> Fills { get; set; }
Property Value
- IEnumerable<string>
The fills.
LineType
Gets or sets the type of the line used to render the bar border.
[Parameter]
public LineType LineType { get; set; }
Property Value
- LineType
The type of the line.
Stroke
Specifies the stroke (border color) of the bar series.
[Parameter]
public string Stroke { get; set; }
Property Value
- string
The stroke.
StrokeRange
Gets or sets the color range of the stroke.
[Parameter]
public IList<SeriesColorRange> StrokeRange { get; set; }
Property Value
- IList<SeriesColorRange>
The color range of the stroke.
StrokeWidth
Gets or sets the width of the stroke (border).
[Parameter]
public double StrokeWidth { get; set; }
Property Value
- double
The width of the stroke.
Strokes
Specifies a list of colors that will be used to set the individual bar borders.
[Parameter]
public IEnumerable<string> Strokes { get; set; }
Property Value
- IEnumerable<string>
The strokes.
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
Contains(double, double, double)
public override bool Contains(double x, double y, double tolerance)
Parameters
Returns
DataAt(double, double)
public override (object, Point) DataAt(double x, double y)
Parameters
Returns
GetCategories()
protected override IList<object> GetCategories()
Returns
GetDataLabels(double, double)
public override IEnumerable<ChartDataLabel> GetDataLabels(double offsetX, double offsetY)
Parameters
Returns
Render(ScaleBase, ScaleBase)
public override RenderFragment Render(ScaleBase categoryScale, ScaleBase valueScale)
Parameters
Returns
TooltipStyle(TItem)
protected override string TooltipStyle(TItem item)
Parameters
item
TItem
Returns
TooltipTitle(TItem)
protected override string TooltipTitle(TItem item)
Parameters
item
TItem
Returns
TooltipValue(TItem)
protected override string TooltipValue(TItem item)
Parameters
item
TItem
Returns
TransformCategoryScale(ScaleBase)
public override ScaleBase TransformCategoryScale(ScaleBase scale)
Parameters
scale
ScaleBase
Returns
TransformValueScale(ScaleBase)
public override ScaleBase TransformValueScale(ScaleBase scale)
Parameters
scale
ScaleBase