About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Last updated: Apr 05, 2024
You can add pivot tables in the Visualization view to display data from an existing (input or output) table aggregated in different ways.
To show data aggregated, select the table columns and rows that you want to display and select the appropriate aggregator to compute the data for each cell.
For example, the JSON code that is generated for a pivot table is as follows:
{ "name": "", "type": "Pivot", "props": { "container": "Pivot2", "data": "party", "spec": { "config": {}, "columns": [ { "property": "Party Size", "label": "Party Size", "type": "Number", "visible": true, "width": 0, "style": {} } ], "rows": [ { "property": "Payer Gender", "label": "Payer Gender", "type": "String", "visible": true, "width": 0, "style": {} }, { "property": "Day of Week", "label": "Day of Week", "type": "String", "visible": true, "width": 0, "style": {} } ], "tableRenderer": "Table Row Heatmap", "aggregator": "Count Unique Values", "aggregatedCol1": "Tip" }, "search": "" } }
Field | Description |
---|---|
|
The name of the widget |
|
Pivot |
|
The selected scenario |
|
The name of the existing table to pivot |
|
An array of columns of the existing table that are used as pivot column headers |
|
An array of rows of the existing table that are used as pivot rows headers |
|
The type of table rendered. Choose from these options , , , and
|
|
The function that computes the cells from the chosen columns and rows. Several choices are
available: , , , , , ,
, , , , , ,
, , ,
, , , ,
|
|
The name of the columns needed for those aggregators that require table columns to aggregate
the data. aggregators require no such column name. The aggregator requires 2 columns, and all other aggregators require one column. |
Was the topic helpful?
0/1000