All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

WaterfallAbsoluteValueOptions Class

Stores settings for a waterfall chart that displays absolute data values.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

Declaration

public class WaterfallAbsoluteValueOptions :
    WaterfallValueOptionsBase
Public Class WaterfallAbsoluteValueOptions
    Inherits WaterfallValueOptionsBase

Remarks

Use the WaterfallAbsoluteValueOptions when the chart data source stores absolute values. In this case, the chart control automatically calculates differences between neighbor data point values and displays them as rising and falling bars.

Example

This example shows how to create a waterfall chart based on a set of absolute data values.

using DevExpress.XtraCharts;
using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;

namespace WaterfallChart {
    public partial class Form1 : XtraForm {
        public Form1() {
            InitializeComponent();
        }
        private void Form1_Load(object sender, EventArgs e) {
            Series series = new Series("Series", ViewType.Waterfall);
            series.DataSource = DataPoint.GetDataPoints();
            series.ArgumentDataMember = "Argument";
            series.ValueDataMembers.AddRange(new string[] { "Value" });
            series.ArgumentScaleType = ScaleType.Qualitative;
            chartControl1.Series.Add(series);
            series.LabelsVisibility = DevExpress.Utils.DefaultBoolean.True;
            WaterfallSeriesView view = series.View as WaterfallSeriesView;
            if (view != null) {
                view.ValueOptions = new WaterfallAbsoluteValueOptions { ShowTotal = true };
            }
        }
    }
    public class DataPoint {
        public string Argument { get; set; }
        public double Value { get; set; }
        public DataPoint(string argument, double value) {
            this.Argument = argument;
            this.Value = value;
        }
        public static List<DataPoint> GetDataPoints() {
            List<DataPoint> data = new List<DataPoint> {
                new DataPoint("November", 10),
                new DataPoint("December", 15),
                new DataPoint("January", -10),
                new DataPoint("February", -5),
                new DataPoint("March", -20)
            };
            return data;
        }
    }
}

Inheritance

Object
ChartElement
WaterfallValueOptionsBase
WaterfallAbsoluteValueOptions
See Also