Skip to main content

ScatterWindowDefinition Class

A window definition used to perform calculations within the ScatterChartDashboardItem.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v22.1.Core.dll

Declaration

public class ScatterWindowDefinition :
    MeasureCalculationWindowDefinition

Remarks

Important

The assignment of a ScatterWindowDefinition instance to the MeasureDefinition.WindowDefinition property is required to perform window calculations.

Example

The code snippet specifies window calculations for a Scatter Chart dashboard item across a window. View Example: How to add window calculations for numeric measures in code

using DevExpress.DashboardCommon;
using DevExpress.DashboardWin;
// ...
ScatterChartDashboardItem scatterChart = dashboardViewer1.Dashboard.Items[scatterChartName] as ScatterChartDashboardItem;
if (scatterChart != null)
{
    scatterChart.AxisXMeasure.Calculation = new DifferenceCalculation() { DifferenceType = DifferenceType.Percentage };
    scatterChart.AxisXMeasure.WindowDefinition = new ScatterWindowDefinition();
    scatterChart.AxisYMeasure.Expression = "WindowMedian(ToDouble(Sum([Extended Price]) - Lookup(Sum([Extended Price]), -1)) / Lookup(Sum([Extended Price]), -1), 0, 1)";
    scatterChart.AxisYMeasure.WindowDefinition = new ScatterWindowDefinition();
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ScatterWindowDefinition class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
DevExpress.DashboardCommon.Native.ClonableModelBase<MeasureCalculationWindowDefinition>
MeasureCalculationWindowDefinition
ScatterWindowDefinition
See Also