# RadzenPyramidSeries<TItem> Class

A chart series that displays data as a pyramid chart with trapezoid segments, widest at the bottom.

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)
- RadzenPyramidSeries<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 RadzenPyramidSeries<TItem> : CartesianSeries<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IChartSeries, IChartValueAxisSeries
```

## Type Parameters

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

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenPyramidSeries<TItem>()` | A chart series that displays data as a pyramid chart with trapezoid segments, widest at the bottom. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| Color | `string` |  |
| CoordinateSystem | [`CoordinateSystem`](https://blazor.radzen.com/docs/api/Radzen.CoordinateSystem.md) |  |
| FillMode | [`FillMode`](https://blazor.radzen.com/docs/api/Radzen.Blazor.FillMode.md) | Specifies how the segments are filled. Set to Solid by default. Use Gradient for a horizontal fade across each segment, or None to render only the outline. |
| Fills | `IEnumerable<string>` | Gets or sets a collection of fill colors applied to individual pyramid segments. |
| GradientEndOpacity | `double` | Specifies the opacity at the end (right) edge of the gradient fill. Used when FillMode is Gradient. |
| GradientStartOpacity | `double` | Specifies the opacity at the start (left) edge of the gradient fill. Used when FillMode is Gradient. |
| Inverted | `bool` | Gets or sets a value indicating whether to invert the pyramid so the wide base is at the top. When false (default), the wide base is at the bottom. When true, the wide base is at the top. |
| ShowLabels | `bool` | Gets or sets a value indicating whether to show labels on each segment. |
| StrokeWidth | `double` | Gets or sets the width of segment borders in pixels. |
| Strokes | `IEnumerable<string>` | Gets or sets a collection of stroke colors applied to individual pyramid segments. |

## 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>` |  |
| `GetDataLabels(double offsetX, double offsetY)` | `IEnumerable<Rendering.ChartDataLabel>` |  |
| `GetDataLabels(double offsetX, double offsetY, DataLabelPosition position)` | `IEnumerable<Rendering.ChartDataLabel>` |  |
| `MeasureLegend()` | `double` |  |
| `MeasureLegendItems()` | `IEnumerable<double>` |  |
| `Render(ScaleBase categoryScale, ScaleBase valueScale)` | `RenderFragment` |  |
| `RenderLegendItem(bool clickable)` | `RenderFragment` |  |
| `TooltipClass(TItem item)` | `string` |  |
| `TooltipStyle(TItem item)` | `string` |  |

## Inherited Members

- From [CartesianSeries<TItem>](https://blazor.radzen.com/docs/api/Radzen.Blazor.CartesianSeries-1.md): BandIntersects, CategoryProperty, ChildContent, ClipToPlotRange, ComposeCategory, ComposeValue, Data, Dispose, GetCategories, GetMean, GetMedian, GetMode, GetRawValueGetter, GetScaledDataPoints, GetTitle, GetTooltipPosition, GetTrend, Hidden, IncludeZeroInValueScale, Initialize, InsidePolygon, InvokeClick, IsDate, IsNumeric, IsValueNullable, Items, MarkerSize, MarkerType, Markers, Overlays, PickColor, RenderOverlays, RenderSharedTooltipItem, RenderTooltip, RenderTopOverlays, RenderingOrder, RequireChart, SetParametersAsync, ShowActivePoint, ShowInLegend, ShowLineInLegend, Title, TooltipLabel, TooltipTemplate, TooltipTitle, TooltipValue, TransformCategoryScale, TransformValueScale, 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

