5 min readUpdated Mar 2, 2026

LineTile Documentation

Purpose

The LineTile component is an interactive visualization tool within the Vantage data platform that provides users with a line chart representation of their data. It is designed to represent trends or changes over a continuous range, making it useful for displaying time series or sequential datasets.

How It Works

LineTile integrates with various hooks to fetch, process, and render data. It uses the charting engine to visually represent the data in a line chart format. The component supports dynamic interactions such as clickable links, adjustable settings, and AI data generation for enhanced analysis capabilities.

Data Flow

  1. Data Fetching: The component fetches data based on configurations provided, including workflows and data identifiers.
  2. Data Validation & Mapping: The fetched data is validated and mapped to the format required for visualization by the LineChart.
  3. Rendering: The processed data is rendered into a line chart with configurable options for display.

Settings

The LineTile comes with multiple settings for customization within the props.config object. Each setting is outlined below:

1. showGrid

2. showTooltip

3. showLegend

4. workflows

5. series

6. bucketing

7. clickUrl

8. axisLabels

9. skipAnimation

Data Expectations

LineTile expects tabular data structured with numerical values for the y-axis and categorical or date values for the x-axis. Each data point should adhere to a consistent schema, commonly as objects with x and y properties.

Example Expected Data

json
[
  { "x": "2023-01-01", "y": 100 },
  { "x": "2023-01-02", "y": 150 },
  { "x": "2023-01-03", "y": 120 },
  { "x": "2023-01-04", "y": 180 }
]

Use Cases & Examples

Use Cases

  1. Sales Performance Tracking: Businesses can track sales trends over time to understand the impact of marketing strategies.
  2. Website Traffic Analysis: Marketing teams may use LineTile to visualize traffic patterns on their website, identifying peak engagement times.
  3. Financial Forecasting: Financial analysts can display stock price trends to predict future performance based on historical data.

Example Configuration

Use Case: Sales Performance Tracking To monitor sales performance over time, the following configuration can be set:

json
{
  "title": "Monthly Sales Performance",
  "subtitle": "Tracking sales over the past year",
  "config": {
    "showGrid": true,
    "showTooltip": true,
    "showLegend": true,
    "axisLabels": {
      "x": "Date",
      "y": "Sales (in USD)"
    },
    "series": [
      {
        "key": "sales_amount",
        "label": "Sales Amount"
      }
    ],
    "clickUrl": "https://company.com/sales-report",
    "bucketing": {
      "bucketBy": "month",
      "aggregation": "sum"
    }
  },
  "data": [
    { "x": "2023-01", "y": 20000 },
    { "x": "2023-02", "y": 25000 },
    { "x": "2023-03", "y": 22000 },
    { "x": "2023-04", "y": 30000 },
    { "x": "2023-05", "y": 35000 },
    ...
  ]
}

In this configuration: