Whether to automatically execute the query when inputs initialize or change
Category path of the saved Query
Data source to query from: 'Materialized' (default) or 'Live'
Height of the pivot container
External loading state override
Fired when pivot calculation finishes
If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes are used for this and the default GraphQLDataProvider is used which is connected to the same back-end MJAPI instance as the Metadata and RunView classes. If you want to have this component connect to a different MJAPI back-end, create an instance of a ProviderBase sub-class like GraphQLDataProvider/etc, and configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.
Fired when query execution completes
Fired when query execution encounters an error
Fired when query execution starts
Emitted when a row is clicked or activated.
Grid row selection mode
Whether to show the grid toolbar
Visual configuration passed to data grid
StaticɵdirStaticɵfacHeader titles for dimension/time columns, keyed by column name.
Optional column identifying comparison/previous period rows
Whether to compute comparison window metrics and deltas
Optional raw data input (bypasses remote query execution if supplied)
Array of column names to group by
Dimension columns used for grouping but not displayed (e.g. an ID shown via its name column).
Parameter values to supply to the query
Returns either the default Metadata provider or the one specified in the Provider property, if it was specified
ID of the saved Query (alternative to QueryName)
Name of the saved Query to execute
Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified
Returns either the default RunView provider or the one specified in the Provider property, if it was specified
Optional date/time column for time bucketing
Purely calculates the pivot over provided rows and updates the view.
A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.
Refreshes the query execution.
Executes the query and calculates the pivot results.
A generic pivot table component that runs any saved Query or ad-hoc query parameters, groups and aggregates rows across dimensions and time grains, handles comparison windows, formats null values as em dashes ('—'), and renders via mj-query-data-grid.
Example