ScatterChartDashboardItem Class
A Scatter Chart dashboard item that visualizes relationships between numerical variables.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v24.2.Core.dll
Declaration
Remarks
The Scatter Chart dashboard item provides the capability to visualize relationships between numerical variables.
The following documentation is available.
Example
The following code snippet shows how to bind a Scatter Chart dashboard item to data in code.
using System;
using DevExpress.DashboardCommon;
namespace Dashboard_CreateScatterChart {
public partial class Form1 : DevExpress.XtraEditors.XtraForm {
public Form1() {
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e) {
Dashboard dashboard = new Dashboard();
// Create an OLAP dashboard data source with the connection string
// stored in the app.config file.
DashboardOlapDataSource olapDataSource = new DashboardOlapDataSource();
olapDataSource.ConnectionName = "AdventureWorksString";
dashboard.DataSources.Add(olapDataSource);
// Create a scatter chart and binds it to data.
ScatterChartDashboardItem scatterChart = new ScatterChartDashboardItem();
scatterChart.DataSource = olapDataSource;
scatterChart.AxisXMeasure = new Measure("[Measures].[Sales Amount]");
scatterChart.AxisYMeasure = new Measure("[Measures].[Gross Profit Margin]");
scatterChart.Arguments.Add(new Dimension("[Product].[Category].[Category]"));
scatterChart.Weight = new Measure("[Measures].[Gross Profit]");
// Add the scatter chart to the dashboard and
// display the dashboard in the Dashboard Viewer.
dashboard.Items.Add(scatterChart);
dashboardViewer1.Dashboard = dashboard;
}
}
}
Implements
Inheritance
Object
DashboardItem
DataDashboardItem
ScatterChartDashboardItem
See Also