Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IChartSeriesPoint.Visible Property

Specifies a series point’s visibility.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
bool Visible { get; set; }

#Property Value

Type Description
Boolean

true if a series point is visible; otherwise, false.

#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:

Razor
<DxChart Data="@WeatherForecasts" CustomizeSeriesPoint="@PreparePoints">
    <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.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;
    }
}

Charts - Series point visibility

Run Demo: Charts - Series Point Customization

See Also