# RadzenContourSeries<TItem> Class

A chart series that renders a filled contour (isoband) plot from scalar field data sampled on a regular grid. Each data item provides an X coordinate (CategoryProperty), a Y coordinate (ValueProperty) and an intensity value (IntensityProperty). The series draws one filled polygon per (cell, band) so that areas with intensity within a given [SeriesColorRange](https://blazor.radzen.com/docs/api/Radzen.Blazor.SeriesColorRange.md) are shaded with that range's color. Uses linear interpolation inside each grid triangle (marching-triangles), which avoids the saddle ambiguity of marching-squares and produces smooth iso-bands suitable for isoilluminance plots, temperature maps and similar visualisations.

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)
- [CartesianSeries<TItem>](https://blazor.radzen.com/docs/api/Radzen.Blazor.CartesianSeries-1.md)
- RadzenContourSeries<TItem>

## Implements

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

## Syntax

```csharp
public class RadzenContourSeries<TItem> : CartesianSeries<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IChartSeries, IChartValueAxisSeries
```

## Type Parameters

| Name | Description |
|------|-------------|
| TItem | The type of data items in the series. |

## Examples

```razor
<RadzenChart>
    <RadzenContourSeries Data=@grid CategoryProperty="X" ValueProperty="Y" IntensityProperty="Lux"
        ColorRange="@ranges" ShowLines="true" Title="Illuminance" />
    <RadzenCategoryAxis Min="0" Max="5" />
    <RadzenValueAxis Min="0" Max="5" />
</RadzenChart>
```

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenContourSeries<TItem>()` | A chart series that renders a filled contour (isoband) plot from scalar field data sampled on a regular grid. Each data item provides an X coordinate (CategoryProperty), a Y coordinate (ValueProperty) and an intensity value (IntensityProperty). The series draws one filled polygon per (cell, band) so that areas with intensity within a given [SeriesColorRange](https://blazor.radzen.com/docs/api/Radzen.Blazor.SeriesColorRange.md) are shaded with that range's color. Uses linear interpolation inside each grid triangle (marching-triangles), which avoids the saddle ambiguity of marching-squares and produces smooth iso-bands suitable for isoilluminance plots, temperature maps and similar visualisations. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| Color | `string` |  |
| ColorRange | `IList<SeriesColorRange>` | The value-to-color mapping for isoband fills. Each range specifies a Min, Max and Color. |
| Fill | `string` | The default fill color applied to regions whose intensity does not match any entry in ColorRange. |
| IntensityLabel | `string` | The label used for the intensity dimension in the tooltip. Defaults to "Value". |
| IntensityProperty | `string` | The name of the numeric property of TItem that provides the scalar field (the value mapped to color). |
| LineColor | `string` | The color used for iso-lines when ShowLines is true. When not set the band color is used. |
| LineThresholds | `IList<double>` | Explicit iso-line thresholds. When null the Min of each entry in ColorRange is used. |
| LineWidth | `double` | The iso-line width in pixels. |
| ShowLines | `bool` | When true iso-lines are drawn between bands. Defaults to false. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `BuildRenderTree(Rendering.RenderTreeBuilder __builder)` | `void` |  |
| `Contains(double x, double y, double tolerance)` | `bool` |  |
| `DataAt(double x, double y)` | `ValueTuple<object, Point>` |  |
| `Render(ScaleBase categoryScale, ScaleBase valueScale)` | `RenderFragment` |  |
| `RenderLegendItem(bool clickable)` | `RenderFragment` |  |
| `TooltipTitle(TItem item)` | `string` |  |
| `TooltipValue(TItem item)` | `string` |  |
| `TransformValueScale(ScaleBase scale)` | [`ScaleBase`](https://blazor.radzen.com/docs/api/Radzen.Blazor.ScaleBase.md) |  |

## Inherited Members

- From [CartesianSeries<TItem>](https://blazor.radzen.com/docs/api/Radzen.Blazor.CartesianSeries-1.md): BandIntersects, CategoryProperty, ChildContent, ClipToPlotRange, ComposeCategory, ComposeValue, CoordinateSystem, Data, Dispose, GetCategories, GetDataLabels, GetMean, GetMedian, GetMode, GetRawValueGetter, GetScaledDataPoints, GetTitle, GetTooltipPosition, GetTrend, Hidden, IncludeZeroInValueScale, Initialize, InsidePolygon, InvokeClick, IsDate, IsNumeric, IsValueNullable, Items, MarkerSize, MarkerType, Markers, MeasureLegend, MeasureLegendItems, Overlays, PickColor, RenderOverlays, RenderSharedTooltipItem, RenderTooltip, RenderTopOverlays, RenderingOrder, RequireChart, SetParametersAsync, ShowActivePoint, ShowInLegend, ShowLineInLegend, Title, TooltipClass, TooltipLabel, TooltipStyle, TooltipTemplate, TransformCategoryScale, TryGetPlotRange, ValueAxisName, ValueProperty, Visible
- From [RadzenChartComponentBase](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenChartComponentBase.md): Chart, DidParameterChange, ShouldRefreshChart, ValidateParameters
- From ComponentBase: Assets, AssignedRenderMode, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnAfterRenderAsync, OnInitialized, OnInitializedAsync, OnParametersSet, OnParametersSetAsync, RendererInfo, ShouldRender, StateHasChanged

