Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

Pivot Grid

The Dynamic Pivot Grid Component is an advanced data visualization and analysis tool that organizes complex datasets into a cross-tabular format. It allows users to summarize, analyze, and compare large volumes of data across multiple dimensions. The component provides powerful capabilities for data transformation, including grouping, filtering, sorting, and calculation of summary values. Pivot grids are particularly useful for business intelligence, financial analysis, and data exploration scenarios.

Properties

Visual Properties

  • titleTranslations - Sets the title text displayed above the pivot grid, with support for multiple languages. For example, {"en-US": "Sales Performance Analysis", "de-DE": "Analyse der Verkaufsleistung"} allows proper localization of the component title.

  • subtitleTranslations - Sets a secondary text displayed below the title, with language support. For example, {"en-US": "Quarterly breakdown by region and product", "de-DE": "Quartalsaufschlüsselung nach Region und Produkt"} provides additional context about the data being presented.

  • allowFiltering - Enables filtering capabilities for pivot grid fields. When enabled, users can apply filters to reduce the dataset to specific values of interest, enhancing data analysis capabilities.

  • showBorders - Determines whether borders are displayed around cells in the pivot grid. When enabled, cell borders improve the readability of complex datasets by providing clear visual separation.

  • allowSorting - Enables sorting capabilities for pivot grid dimensions. When enabled, users can sort data within any column or row to identify trends, highest/lowest values, or other patterns in the data.

  • showColumnGrandTotals - Determines whether grand totals are shown for columns. When enabled, a summary row calculating totals across all columns is displayed at the bottom of the grid.

  • showRowGrandTotals - Determines whether grand totals are shown for rows. When enabled, a summary column calculating totals across all rows is displayed at the right edge of the grid.

  • showRowTotals - Controls the display of subtotals for each row group. When enabled, subtotal rows are shown for each grouped category, providing intermediate summary information.

  • showColumnTotals - Controls the display of subtotals for each column group. When enabled, subtotal columns are shown for each grouped category, providing intermediate summary information.

  • showFieldPanel - Displays a panel allowing users to customize the pivot grid layout. When enabled, users can drag and drop fields between different areas (data, row, column, filter) to reconfigure the analysis dynamically.

  • showDataFields - Controls visibility of data fields in the field panel. This property only applies when showFieldPanel is enabled and determines whether users can manipulate value fields.

  • showRowFields - Controls visibility of row fields in the field panel. This property only applies when showFieldPanel is enabled and determines whether users can manipulate row dimension fields.

  • showColumnFields - Controls visibility of column fields in the field panel. This property only applies when showFieldPanel is enabled and determines whether users can manipulate column dimension fields.

  • showFilterFields - Controls visibility of filter fields in the field panel. This property only applies when showFieldPanel is enabled and determines whether users can manipulate filter fields.

  • allowFieldDragging - Enables drag-and-drop functionality in the field panel. This property only applies when showFieldPanel is enabled and allows users to reposition fields between different areas for on-the-fly analysis restructuring.

  • paddingClass - Configures the padding around the component using CSS classes. For example, "p-3" adds medium padding on all sides of the pivot grid component.

Non-Visual Properties

  • useMockData - Determines whether sample data is used instead of an actual data source. When enabled, the pivot grid displays pre-defined sample data, which is useful for design and testing purposes.

Datasource Properties

  • dataSourceId - Specifies the data source ID for retrieving pivot grid data. For example, "api/sales-analysis" connects the pivot grid to an endpoint that provides the appropriate data structure for pivot analysis.

  • getEntityCollectionHttpRequestParametersMap - Configures HTTP request parameters for fetching data. This allows for customizing query parameters or path variables that are sent when requesting data from the specified source.

  • elements - Defines the fields configuration for the pivot grid, including how raw data fields are mapped to pivot areas (row, column, data, filter). This configuration determines which aspects of the data are used for different dimensions of the analysis and how values are calculated and displayed.

Event Actions

  • events - Configures events that the component can trigger and respond to:
  • ON_INIT: Triggered when the component is initialized. This event can be used to perform setup operations or initial data processing.
  • ON_DESTROY: Triggered when the component is removed from the DOM. This event can be used for cleanup operations or resource release.

General

  • displayName - Sets the display name of the component shown in the structure panel. For example, "Sales Analysis Pivot" clearly identifies the purpose of this specific pivot grid in the component structure.

Authorization

  • visibilityPolicySetId - Determines the visibility of the component based on user permissions and policy sets. For example, setting to "analyticsTeamPolicy" restricts the pivot grid to users with analytics team privileges.

Visibility

  • displayConditions - Defines conditions under which the pivot grid is displayed. This allows for context-aware visibility, showing the pivot grid only when certain conditions are met (e.g., when a specific dashboard section is active).

Testing Hooks

  • id - Specifies a unique identifier for the component, useful for programmatic access in testing or custom code.

  • dataTestId - Sets a testing hook ID for automated testing, allowing test scripts to reliably identify this pivot grid component.

  • enableAsHotspot - Enables the component as a guided tour hotspot. When enabled, this pivot grid can be highlighted during onboarding tours.

  • guidedTourHotSpotTitle - Sets the title text displayed when this component is highlighted in a guided tour, with support for translations.

  • guidedTourHotSpotDescription - Sets the descriptive text explaining the pivot grid's purpose during a guided tour, with support for translations.

Data Format Requirements

The Pivot Grid component works best with flat, tabular data in the following format:

...

  • Fields like "region", "product", "quarter", and "year" can be used as row or column dimensions
  • Fields like "sales", "cost", and "profit" are typically used as data fields with summary functions (sum, average, count, etc.)

Field Configuration

The elements property allows for detailed configuration of how data fields are used in the pivot grid:

...