5 min readUpdated Mar 2, 2026

AggregatedBarTile Documentation

Overview

The AggregatedBarTile is a versatile component designed for rendering bar charts based on aggregated or pivoted data. This component is ideal for visualizing grouped data in both stacked and grouped bar layouts, making it suitable for various analytical scenarios. It provides dynamic chart rendering and incorporates pagination capabilities to handle large datasets.

Purpose

The primary purpose of the AggregatedBarTile is to provide an intuitive visualization of aggregated data. It is designed to work seamlessly with the output from an aggregation workflow node and supports both simple groupBy results (category to value mappings) and more complex pivoted data structures with multiple series.

Settings

The AggregatedBarTile comes with several configurable settings that cater to different use cases. Below is a detailed breakdown of each setting:

Tile Properties

Configuration Properties

How It Works

  1. Data Initialization: The component begins by checking for data either received via props (propData) or dynamically fetched using dataRefId through the useDataRefPagination hook. This hook enables pagination, improving performance with large data sets.

  2. Field Detection: The component uses the computed values hook to automatically detect the label and value fields if they are not specified. It searches for string fields for the label and numeric fields for the value bars.

  3. Chart Data Preparation: It prepares the final chart data by mapping through the primary data structure, organizing it into usable objects that the chart component can render.

  4. Rendering States: Three states (loading, error, and no data) are checked to provide appropriate feedback to the user before rendering the actual bar chart.

  5. Rendering the Chart: the bar chart component is used to visualize the data, with customizable properties such as margins, formatting, legends, tooltips, and color schemes.

Use Cases & Examples

Use Cases

  1. Sales Performance Dashboard: A business can use the AggregatedBarTile to illustrate sales performance across various categories over time. This visual can help managers quickly identify high-performing categories and areas needing improvement.

  2. Inventory Analysis: Retailers can visualize their inventory levels over time with stacked bars showing the quantities of different items across multiple regions, facilitating better stock management.

  3. Marketing Campaign Effectiveness: Marketing teams can analyze the effectiveness of different campaigns by displaying key metrics like total leads generated, conversion rates, and average order value in a grouped, comparative manner.

Example Configuration

Use Case: Sales Performance Dashboard

For a dashboard illustrating monthly sales performance across different product categories, the AggregatedBarTile may be configured as follows:

javascript
<AggregatedBarTile
    title="Monthly Sales Performance"
    subtitle="Comparison of Sales across Categories"
    footerText="Data sourced from sales database"
    footerColor="#666"
    dataRefId="sales-data"
    config={{
        labelField: 'month',
        valueFields: ['totalSales', 'avgOrderValue'],
        stacked: false,
        showGrid: true,
        showTooltip: true,
        showLegend: true,
        colorScheme: ['#3b82f6', '#10b981', '#f59e0b'],
        pageSize: 12
    }}
/>

In this example:

This configuration ensures that users can easily assess sales trends and adjust strategies accordingly.