The requested page is not available for the requested platform. You are viewing the content for Default platform.

ScatterWindowDefinition Class

A window definition used to perform calculations within the ScatterChartDashboardItem.

Namespace: DevExpress.DashboardCommon

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

Declaration

public class ScatterWindowDefinition :
    MeasureCalculationWindowDefinition
Public Class ScatterWindowDefinition
    Inherits MeasureCalculationWindowDefinition

Remarks

Important

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

Examples

The code snippet specifies window calculations for a Scatter Chart dashboard item across a window.

Note

The complete sample project How to add window calculations for numeric measures in code is available in the DevExpress Examples repository.

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();
}

Inheritance

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