| layout | post |
|---|---|
| title | ejPivotAnalysisBase |
| documentation | API |
| platform | angular-api |
| keywords | ejPivotAnalysisBase, API, Essential JS PivotAnalysisBase |
| metaname | |
| metacontent |
This section contains the properties and methods available for all the Pivot Controls operated in client mode with Relational data.
- module:jQuery-3.0.0.min.js
- module:ej.core.js
- module:ej.data.js
- module:ej.touch.js
- module:ej.pivot.common.js
- module:ej.pivotanalysis.base.js
{:#methods:setfieldcaptions}
This function sets the caption for all fields in datasource is it is not set.
Example:
{% highlight ts %}
export AppComponent {
ngAfterViewInit(){
ej.PivotAnalysis.setFieldCaptions(dataSourceObj);
} }
{% endhighlight %}
{:#methods:gettreeviewdata}
This function returns the data required to render the field list formed from the raw data source.
array
Example:
{% highlight ts %}
export AppComponent {
ngAfterViewInit(){
let treeViewData = ej.PivotAnalysis.getTreeViewData(dataSourceObj);
} }
{% endhighlight %}
{:#methods:pivotenginepopulate}
This function forms the pivot engine and JSON data required to render the Pivot Controls from the datasource.
object
Example:
{% highlight ts %}
export AppComponent {
ngAfterViewInit(){
let jsonData = ej.PivotAnalysis.pivotEnginePopulate(pivotControlModel);
} }
{% endhighlight %}
{:#methods:getmembers}
This function returns the list of members available in the given field.
array
Example:
{% highlight ts %}
export AppComponent {
ngAfterViewInit(){
let fieldMembers = ej.PivotAnalysis.getMembers(fieldObj);
} }
{% endhighlight %}