5 min readUpdated Mar 2, 2026

BarTile Documentation

Overview

The BarTile component is designed for visualizing data in a bar chart format within the Vantage analytics platform. This visualization allows users to present comparative data, trends over time, or any categorical information in a clear and engaging manner. With its customizable options, users can easily adapt the BarTile to suit their specific data visualization needs.

Settings

1. Title

2. Subtitle

5. Data

6. Data Ref IDs

7. Show Grid

8. Show Tooltip

9. Show Legend

10. Workflows

11. Series

12. Skip Animation

13. Click URL

How It Works

The BarTile component processes data through various hooks and functions that fetch, validate, and prepare the data for visualization. The following steps occur within the component:

  1. Data Fetching: The component fetches initial data from defined sources using the useTileData and useFullDataset hooks based on the provided Data Ref IDs.
  2. AI Integration: If AI workflows are defined, the useAIChartData hook generates additional series data that can override existing datasets. This allows dynamic and predictive modeling based on workflow outcomes.
  3. Data Validation and Processing: The raw data is passed through the useTileProcessedData hook, which validates the configuration, transforming the data into a format suitable for the chart.
  4. Dynamic Rendering: Depending on various states like loading and errors, the component conditionally renders loading indicators or error messages.
  5. Chart Rendering: Finally, the data is displayed using the charting engine, including features like tooltips and grid lines based on user-configured settings.

Use Cases & Examples

Use Case 1: Sales Performance Tracking

A retail company can use the BarTile to visualize monthly sales performance across different regions. Each bar can represent sales figures, highlighting the most successful regions over time.

Use Case 2: Website User Engagement

A digital marketing team may configure a BarTile to display user engagement metrics over time. Metrics could include daily visits, bounce rates, and conversion rates, all represented in interactive bar formats for quick analysis.

Example Configuration

Consider a scenario where a company wants to track sales data for different product lines over a year. The configuration for the BarTile could be set as follows:

json
{
  "title": "Yearly Sales Performance",
  "subtitle": "Comparison across product lines",
  "footerText": "Data sourced from sales database",
  "footerColor": "#4A4A4A",
  "data": [
      { "label": "Product A", "value": 4000 },
      { "label": "Product B", "value": 3000 },
      { "label": "Product C", "value": 2000 },
      { "label": "Product D", "value": 5000 }
  ],
  "showGrid": true,
  "showTooltip": true,
  "showLegend": true,
  "series": [
      { "label": "Sales", "color": "#FF9500" }
  ],
  "clickUrl": "https://www.company.com/sales-details",
  "skipAnimation": false
}

This configuration will create a BarTile that visually represents the sales performance of different products, allowing stakeholders to make informed decisions based on clear, engaging data visualizations.