# RadzenSeriesReferenceBand Class

Displays a shaded reference band between two fixed values over a chart series. Use it to highlight acceptable ranges, thresholds or zones on the value axis.

Namespace: [Radzen.Blazor](https://blazor.radzen.com/docs/api/Radzen.Blazor.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- [RadzenChartComponentBase](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenChartComponentBase.md)
- [RadzenGridLines](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenGridLines.md)
- RadzenSeriesReferenceBand

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender
- [IChartSeriesOverlay](https://blazor.radzen.com/docs/api/Radzen.Blazor.IChartSeriesOverlay.md)

## Syntax

```csharp
public class RadzenSeriesReferenceBand : RadzenGridLines, IComponent, IHandleEvent, IHandleAfterRender, IChartSeriesOverlay
```

## Examples

```razor
<RadzenChart>
    <RadzenLineSeries Data=@revenue CategoryProperty="Quarter" ValueProperty="Revenue">
       <RadzenSeriesReferenceBand From="240000" To="280000" Title="Acceptable range" />
    </RadzenLineSeries>
</RadzenChart>
@code {
    class DataItem
    {
        public string Quarter { get; set; }
        public double Revenue { get; set; }
    }
    DataItem[] revenue = new DataItem[]
    {
        new DataItem { Quarter = "Q1", Revenue = 234000 },
        new DataItem { Quarter = "Q2", Revenue = 284000 },
        new DataItem { Quarter = "Q3", Revenue = 274000 },
        new DataItem { Quarter = "Q4", Revenue = 294000 }
    };
}
```

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenSeriesReferenceBand()` | Initializes a new instance of the [RadzenSeriesReferenceBand](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenSeriesReferenceBand.md) class. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| Fill | `string` | Specifies the fill color of the reference band. Set to var(--rz-series-color) by default - the color of the series the band belongs to. |
| FillOpacity | `double` | Specifies the fill opacity of the reference band. Set to 0.1 by default. |
| From | `double` | Specifies the start value of the reference band on the value axis. |
| Name | `string` | Gets the label displayed in the tooltip of the reference band. |
| Series | [`IChartSeries`](https://blazor.radzen.com/docs/api/Radzen.Blazor.IChartSeries.md) | The series this reference band applies to. Set by the parent series via a cascading parameter. |
| Title | `string` | Specifies the title of the reference band. Displayed as label in the tooltip. Set to "Reference" by default. |
| To | `double` | Specifies the end value of the reference band on the value axis. |
| TooltipTemplate | `RenderFragment<ValueTuple<double, double>>` | Specifies the template displayed in the tooltip of the reference band. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `Contains(double mouseX, double mouseY, int tolerance)` | `bool` |  |
| `Dispose()` | `void` | Removes the reference band from the series overlays. |
| `GetTooltipPosition(double mouseX, double mouseY)` | [`Point`](https://blazor.radzen.com/docs/api/Radzen.Blazor.Point.md) |  |
| `Render(ScaleBase categoryScale, ScaleBase valueScale)` | `RenderFragment` |  |
| `RenderTooltip(double mouseX, double mouseY)` | `RenderFragment` |  |
| `ShouldRefreshChart(ParameterView parameters)` | `bool` |  |

## Inherited Members

- From [RadzenGridLines](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenGridLines.md): ChartAxis, LineType, Stroke, StrokeWidth, Visible
- From [RadzenChartComponentBase](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenChartComponentBase.md): Chart, DidParameterChange, Initialize, SetParametersAsync, ValidateParameters
- From ComponentBase: Assets, AssignedRenderMode, BuildRenderTree, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnAfterRenderAsync, OnInitialized, OnInitializedAsync, OnParametersSet, OnParametersSetAsync, RendererInfo, ShouldRender, StateHasChanged

