NumericIntervalOptions.UnderflowValue Property
In This Article
Gets or sets the end value for the interval that includes underflow values.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
NuGet Package: DevExpress.Charts
#Declaration
#Property Value
Type | Description |
---|---|
Nullable<Double> | A floating-point value that is the underflow interval’s threshold. |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Underflow |
---|---|
Numeric |
|
#Remarks
The underflow interval is the leftmost interval and includes data points whose arguments are less than UnderflowValue.
#Example
This example demonstrates how to create a histogram chart with bins of a given width.
private void Form1_Load(object sender, EventArgs e) {
// Load data to a chart.
chartControl1.DataSource = LoadDataTableFromXml("..\\..\\Data\\CityWeather.xml", "CityWeather");
Series series = new Series();
series.ArgumentDataMember = "Temperature";
SideBySideBarSeriesView view = series.View as SideBySideBarSeriesView;
view.Border.Visibility = DevExpress.Utils.DefaultBoolean.True;
view.BarWidth = 1;
chartControl1.Series.Add(series);
// Configure histogram options.
XYDiagram diagram = chartControl1.Diagram as XYDiagram;
NumericScaleOptions scaleOptions = diagram.AxisX.NumericScaleOptions;
scaleOptions.AggregateFunction = AggregateFunction.Histogram;
scaleOptions.ScaleMode = ScaleMode.Interval;
scaleOptions.IntervalOptions.DivisionMode = IntervalDivisionMode.Width;
scaleOptions.IntervalOptions.Width = 10;
scaleOptions.IntervalOptions.OverflowValue = 20;
scaleOptions.IntervalOptions.UnderflowValue = -30;
scaleOptions.IntervalOptions.Pattern = "{OB}{A1:F0} ― {A2:F0}{CB}";
scaleOptions.IntervalOptions.OverflowValuePattern = "{OS} {A1}";
scaleOptions.IntervalOptions.UnderflowValuePattern = "{US} {A2}";
scaleOptions.IntervalOptions.GridLayoutMode = GridLayoutMode.GridShiftedLabelCentered;
diagram.AxisX.GridLines.Visible = true;
diagram.AxisX.Tickmarks.MinorVisible = false;
}
static DataTable LoadDataTableFromXml(string fileName, string tableName) {
DataSet xmlDataSet = new DataSet();
xmlDataSet.ReadXml(fileName);
return xmlDataSet.Tables[tableName];
}
The following API members configure the histogram options:
Member | Description |
---|---|
Scale |
Gets or sets the value indicating the aggregate function that should be used to relieve data. |
Scale |
Gets or sets the scale mode for an axis. |
Numeric |
Stores options for numeric axis when its Scale |
Numeric |
Specifies how to divide axis scale into intervals. |
Numeric |
Gets or sets the interval size when Division |
Numeric |
Gets or sets the start value for the interval that includes overflow values. |
Numeric |
Gets or sets the end value for the interval that includes underflow values. |
Interval |
Gets or sets a format string that configures text for the interval axis labels and crosshair labels. |
Interval |
Gets or sets a format string that configures text for the overflow interval axis labels and crosshair labels. |
Interval |
Gets or sets a format string that configures text for the underflow interval axis labels and crosshair labels. |
Numeric |
Gets or sets the value that specifies the alignment of grid lines, major tickmarks and axis labels. |
See Also