IChartSeriesPoint.Visible Property
Specifies a series point’s visibility.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
bool Visible { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Remarks
A Chart point’s visibility is specified by the Visible. You can override this value for individual points. For this purpose, handle the CustomizeSeriesPoint event and use the PointAppearance.Visible
property to set the new visibility state.
The following code snippet demonstrates how to:
- use the DxChartSeriesPoint component to define the common point appearance;
- handle the CustomizeSeriesPoint event to hide series points whose values are less than 75.
<DxChart Data="@WeatherForecasts" CustomizeSeriesPoint="@PreparePoints">
<DxChartLineSeries AggregationMethod="@(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.Cross" Color="System.Drawing.Color.Gray" Size="15" />
</DxChartLineSeries>
</DxChart>
@code {
WeatherForecast[] WeatherForecasts;
...
protected void PreparePoints(ChartSeriesPointCustomizationSettings pointSettings) {
double value = (double)pointSettings.Point.Value;
if (value < 75)
pointSettings.PointAppearance.Visible = false;
}
}
See Also