Skip to main content
All docs
V25.1
  • DxChart<T>.DefaultPane Property

    Specifies the pane that displays all axes and series with unspecified Pane property.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [Parameter]
    public string DefaultPane { get; set; }

    Property Value

    Type Description
    String

    The pane name.

    Remarks

    The DefaultPane property accepts the value specified by the DxChartPane.Name property. This allows you to specify the pane that displays all axes and series with unspecified Pane property.

    Note

    When the DefaultPane property value is undefined, the property accepts the value of the last specified pane in the markup.

    <DxChart @ref="@chart"
             Data="weatherForecasts"
             Width="100%"
             DefaultPane="TopPane"
             Height="500px">
        <DxChartTitle Text="Annual Weather in Hilo, Hawaii" />
        <DxChartLegend HorizontalAlignment="HorizontalAlignment.Center"
                       VerticalAlignment="VerticalEdge.Bottom"
                       Position="RelativePosition.Outside" />
        <DxChartPane Name="TopPane" />
        <DxChartPane Name="BottomPane" />
        <DxChartRangeAreaSeries Name="Temperature Range, °F"
                                ArgumentField="@(i => new DateTime(2000, i.Date.Month, 1))"
                                ValueField="@((DetailedWeatherSummary  s) => s.AverageTemperatureF)"
                                Color="@(Color.FromArgb(176, 218, 255))">
        </DxChartRangeAreaSeries>
        <DxChartSplineSeries Name="Average Temperature, °F"
                             SummaryMethod="Enumerable.Average"
                             ArgumentField="@(i => new DateTime(2000, i.Date.Month, 1))"
                             ValueField="@((DetailedWeatherSummary  s) => s.AverageTemperatureF)"
                             Color="@(Color.FromArgb(0, 169, 230))">
            <DxChartSeriesLabel Visible="true" ValueFormat="@(ChartElementFormat.FromLdmlString("0#.## °F"))" />
        </DxChartSplineSeries>
        <DxChartBarSeries Pane="BottomPane"
                          Name="Precipitation, inch"
                          ArgumentField="@(i => new DateTime(2000, i.Date.Month, 1))"
                          SummaryMethod="Enumerable.Average"
                          ValueField="@((DetailedWeatherSummary  s) => s.PrecipitationInch)"
                          Color="@(Color.FromArgb(220, 53, 69))">
            <DxChartSeriesLabel Visible="true"
                                ValueFormat="@(ChartElementFormat.FromLdmlString("0#.## inch"))" />
        </DxChartBarSeries>
        <DxChartValueAxis>
            <DxChartAxisTitle Text="Temperature, °F" />
        </DxChartValueAxis>
        <DxChartValueAxis Pane="BottomPane"
                            SideMarginsEnabled="true">
            <DxChartAxisTitle Text="Precipitation, inch" />
        </DxChartValueAxis>
        <DxChartArgumentAxis>
            <DxChartAxisLabel Format="ChartElementFormat.Month" />
        </DxChartArgumentAxis>
    </DxChart>
    
    @code {
        IEnumerable<DetailedWeatherSummary> weatherForecasts;
    
        protected override async Task OnInitializedAsync() {
            var weatherForecasts = await WeatherSummaryDataProvider.GetDataAsync();
            this.weatherForecasts = weatherForecasts.Where((DetailedWeatherSummary i) => i.City == "HILO");
        }
    }
    

    DxChart - Default pane

    See Also