# Function PivotTableWidget Beta

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

React component extending PivotTable to support widget style options.

# Parameters

Parameter Type Description
props PivotTableWidgetProps Pivot Table Widget properties

# Returns

ReactElement< any, any > | null

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')]
  }}
/>