Class RadzenBarSeries<TItem>
Renders bar series in RadzenChart.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenBarSeries<TItem> : CartesianSeries<TItem>, IChartSeries, IDisposable, IChartBarSeries
Type Parameters
Name | Description |
---|---|
TItem | The type of the series data item. |
Properties
Color
Gets the color.
Declaration
public override string Color { get; }
Property Value
Type | Description |
---|---|
System.String | The color. |
Overrides
Fill
Specifies the fill (background color) of the bar series.
Declaration
public string Fill { get; set; }
Property Value
Type | Description |
---|---|
System.String | The fill. |
FillRange
Gets or sets the color range of the fill.
Declaration
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
public IEnumerable<string> Fills { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<System.String> | The fills. |
LineType
Gets or sets the type of the line used to render the bar border.
Declaration
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
public string Stroke { get; set; }
Property Value
Type | Description |
---|---|
System.String | The stroke. |
StrokeRange
Gets or sets the color range of the stroke.
Declaration
public IList<SeriesColorRange> StrokeRange { get; set; }
Property Value
Type | Description |
---|---|
IList<SeriesColorRange> | The color range of the stroke. |
Strokes
Specifies a list of colors that will be used to set the individual bar borders.
Declaration
public IEnumerable<string> Strokes { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<System.String> | The strokes. |
StrokeWidth
Gets or sets the width of the stroke (border).
Declaration
public double StrokeWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The width of the stroke. |
Methods
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 |
---|---|---|
System.Double | x | The x. |
System.Double | y | The y. |
System.Double | tolerance | The tolerance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
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 |
---|---|---|
System.Double | x | The x. |
System.Double | y | The y. |
Returns
Type | Description |
---|---|
System.ValueTuple<System.Object, Point> |
Overrides
GetCategories()
Returns the category values
Declaration
protected override IList<object> GetCategories()
Returns
Type | Description |
---|---|
IList<System.Object> |
Overrides
GetDataLabels(Double, Double)
Returns data chart position
Declaration
public override IEnumerable<ChartDataLabel> GetDataLabels(double offsetX, double offsetY)
Parameters
Type | Name | Description |
---|---|---|
System.Double | offsetX | |
System.Double | offsetY |
Returns
Type | Description |
---|---|
IEnumerable<Radzen.Blazor.Rendering.ChartDataLabel> |
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 |
---|---|
System.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 |
---|---|
System.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 |
---|---|
System.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 |
Overrides
Explicit Interface Implementations
IChartBarSeries.Count
Declaration
int IChartBarSeries.Count { get; }
Returns
Type | Description |
---|---|
System.Int32 |