blazor-devexpress-dot-blazor-dot-ichartseriespoint-3140dbad.md
Specifies the diameter of series points in pixels.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(12)]
int Size { get; set; }
| Type | Default | Description |
|---|---|---|
| Int32 | 12 |
The diameter of series points in pixels.
|
A Chart point’s size is specified by the Size property. You can override this value for individual points. For this purpose, handle the CustomizeSeriesPoint event and use the PointAppearance.Size property to set the new size.
The following code snippet demonstrates how to:
<DxChart Data="@WeatherForecasts" CustomizeSeriesPoint="@PreparePointSize">
<DxChartLineSeries SummaryMethod="@(i => (int)i.Average())"
Color="System.Drawing.Color.Gray"
ValueField="@((WeatherForecast i) => i.TemperatureF)"
ArgumentField="@(i => i.Date.Date)"
Name="Temperature, F">
<DxChartSeriesPoint Symbol="ChartPointSymbol.Polygon" Color="System.Drawing.Color.Gray" Size="15" />
</DxChartLineSeries>
</DxChart>
@code {
WeatherForecast[] WeatherForecasts;
...
protected void PreparePointSize(ChartSeriesPointCustomizationSettings pointSettings) {
double value = (double)pointSettings.Point.Value;
if(value > 75)
pointSettings.PointAppearance.Size = 30;
else if(value < 25)
pointSettings.PointAppearance.Size = 5;
}
}
Run Demo: Charts - Series Point Customization
See Also