# Function PivotTableWidget Beta

PivotTableWidget(props): null | ReactElement< any, any >

React component extending PivotTable to support widget style options.

# Parameters

Parameter Type Description
props PivotTableWidgetProps Pivot Table Widget properties

# Returns

null | ReactElement< any, any >

Widget component representing a pivot table

# Example

Example of using the PivotTableWidget component to plot a pivot table over the Sample ECommerce data source hosted in a Sisense instance.

<PivotTableWidget
  dataSource={DM.DataSource}
  dataOptions={{
    rows: [DM.Category.Category],
    values: [measureFactory.sum(DM.Commerce.Cost, 'Total Cost')]
  }}
/>