Skip to main content
All docs
V26.1
  • ChartEx.ValueAxis Property

    Gets or sets the primary value axis.

    Namespace: DevExpress.Docs.Presentation

    Assembly: DevExpress.Docs.Presentation.v26.1.dll

    Declaration

    public ValueAxisEx ValueAxis { get; set; }

    Property Value

    Type Description
    ValueAxisEx

    The primary value axis.

    Remarks

    Refer to the following help topic for additional information about axes: DevExpress Presentation API: ChartEx Axes.

    Example

    The following example changes the font size for both ChartEx axes:

    using DevExpress.Docs.Office;
    using DevExpress.Docs.Presentation;
    
        ChartEx chartEx = new ChartEx();
        slide.Shapes.Add(chartEx);
    
        chartEx.Width = presentation.SlideSize.Width;
        chartEx.Height = presentation.SlideSize.Height;
    
        WaterfallSeries series = new WaterfallSeries();
        series.Text = "Cash Flow";
        series.Arguments = new ChartStringData(new[] { "Start", "Jan", "Feb", "Mar", "End" });
        series.Values = new ChartNumericData(new[] { 5.0, 12.0, -5.0, 8.0, 15.0 });
    
        chartEx.Series.Add(series);
    
        CategoryAxisEx? xAxis = chartEx.ArgumentAxis;
        if (xAxis != null) {
            xAxis.LabelTextProperties = new TextProperties { FontSize = 24 };
        }
    
        ValueAxisEx? yAxis = chartEx.ValueAxis;
        if (yAxis != null) {
            yAxis.LabelTextProperties = new TextProperties { FontSize = 24 };
        }
    
    See Also