ejPivotTreeMap
Namespace: Wisej.Web.Ext.Syncfusion
Assembly: Wisej.Web.Ext.Syncfusion (4.1.0.0)
The PivotTreemap is a lightweight control that reads OLAP information and visualizes it in graphical format with the ability to drill up and down.
- C#
- VB.NET
public class ejPivotTreeMap : ejBase
Public Class ejPivotTreeMap
Inherits ejBase
Constructors
ejPivotTreeMap()
Constructs a new instance of the ejPivotTreeMap class.
Example:
The following example creates the pivot tree map and defines the OLAP data source through the options.
var pivotTreeMap = new ejPivotTreeMap();
pivotTreeMap.Options.dataSource = new
{
data = "https://server/olap/msmdpump.dll",
catalog = "Adventure Works DW 2008 SE",
cube = "Adventure Works",
rows = new[] { new { fieldName = "[Date].[Fiscal]" } },
columns = new[] { new { fieldName = "[Customer].[Customer Geography]" } },
values = new[]
{
new
{
measures = new[] { new { fieldName = "[Measures].[Internet Sales Amount]" } },
axis = "columns"
}
}
};
pivotTreeMap.Dock = DockStyle.Fill;
this.Controls.Add(pivotTreeMap);
ejPivotTreeMap(options)
Constructs a new instance of the ejPivotTreeMap class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a pivot tree map that reads the sales amount by customer geography from an OLAP cube.
var pivotTreeMap = new ejPivotTreeMap(new
{
dataSource = new
{
data = "https://server/olap/msmdpump.dll",
catalog = "Adventure Works DW 2008 SE",
cube = "Adventure Works",
rows = new[] { new { fieldName = "[Customer].[Customer Geography]" } },
columns = new[] { new { fieldName = "[Date].[Fiscal]" } },
values = new[]
{
new
{
measures = new[] { new { fieldName = "[Measures].[Internet Sales Amount]" } },
axis = "columns"
}
}
}
});
pivotTreeMap.Dock = DockStyle.Fill;
this.Controls.Add(pivotTreeMap);