> ## Documentation Index
> Fetch the complete documentation index at: https://docs.costory.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Dashboard Widgets and Chart Types

> Choose cloud cost dashboard widgets: bar, line, waterfall and doughnut charts, tables, KPI cards, budget trackers, and BigQuery SQL export.

Dashboard widgets are saved cost views. Each widget can use Explorer-style metrics, formulas, filters, group-bys, comparison periods, and event context.

## Widget types

| Widget | Best for |
| - | - |
| Cost trend | Showing spend over time with a line, area, or bar chart |
| Cost breakdown | Showing how groups contribute to total spend by service, account, team, product, or environment |
| Waterfall | Explaining which groups drove an increase or decrease between two periods |
| Doughnut | Showing the proportional split of a selected period |
| Table | Reviewing sortable cost data and exact values |
| KPI card | Displaying one number, such as total spend, cost per user, or Savings Plan coverage |
| Budget tracker | Comparing actual spend with a [budget](https://docs.costory.io/features/budgets.md) target |

## Chart types

Choose the chart type based on the question the widget should answer.

![Chart type selector showing Line, Bar, Donut, Waterfall, and Table visualization options in Costory](https://mintcdn.com/costory/oeRxBwpaIsrO1jb9/images/different%20chart%20types.png?fit=max\&auto=format\&n=oeRxBwpaIsrO1jb9\&q=85\&s=f4747bcc7b7df93d96c4ab3f2e242576)

Chart type selector with Line, Bar, Donut, Waterfall, and Table options

| Chart type | Use it when |
| - | - |
| Bar chart | You need to compare grouped spend over time and see how each group contributes to the total. |
| Line chart | You need to compare trends across services, teams, or providers. |
| Area chart | You need a trend view that emphasizes total spend volume. |
| Doughnut chart | You need a proportional split for one period, such as spend by provider or team. |
| Waterfall chart | You need to explain what changed between the selected period and the reference period. |
| Table | You need exact values, sorting, or a top-cost breakdown. |

## Waterfall charts

Waterfall charts show which services, accounts, teams, or products drove a cost increase or decrease between two periods. Use them during budget reviews, migration reviews, and cost-change explanations.

![Cost Waterfall chart breaking down an AWS cost increase by service](https://mintcdn.com/costory/oeRxBwpaIsrO1jb9/images/Waterfall.png?fit=max\&auto=format\&n=oeRxBwpaIsrO1jb9\&q=85\&s=0b06bfa7baf6f66bb6cc10818bb5edf1)

Cost Waterfall shows which groups contributed most to a cost change

Pair waterfall charts with [events](https://docs.costory.io/features/events.md) when you need to explain whether a deploy, migration, purchase, or business change happened near the cost movement.

## Doughnut charts

Doughnut charts show proportional spend for a selected period. Use them for high-level split views such as cost by provider, business unit, environment, or product.

## Tables

Table widgets show the data behind a chart. Use them when reviewers need exact values, sorting, or exportable cost breakdowns.

Open the **Display** menu on a table to control sort field and direction, hide empty rows, limit the list with **Top N**, show a **Total** column, and set decimal **Precision**. These options change how the table is shown, not the underlying query.

![Table widget Display menu with sort, hide empty rows, Top N, show total, and precision options](https://mintcdn.com/costory/45RSRImCSL4nl5e8/images/widget-table-options.png?fit=max\&auto=format\&n=45RSRImCSL4nl5e8\&q=85\&s=4c10923675511c98fad3bd46cbb6b7ae)

Display menu on a table widget

Tables can include:

* Selected-period cost
* Reference-period cost when comparison is enabled
* Absolute change
* Relative change
* Cost, usage, budget, or formula values

## Budget vs actual widgets

Use a budget widget when you want to compare an approved [budget (A spending target set for a team, project, or cloud account over a given period.)](https://docs.costory.io/features/budgets.md) with actual spend.

**1. Edit the dashboard widget**

Open the dashboard, click the widget action menu, and select **Edit widget**.

**2. Add the budget metric**

Click **Add Metric**, open the **budget** tab, and choose the budget version you want to analyze.

**3. Add related cost**

Open the action menu for the budget metric and click **Add related cost**. Costory adds a cost metric scoped to the budget definition.

**4. Break actual spend down**

Set **Group By** on the related cost metric to the dimension you use for ownership, such as team, squad, or product line.

**5. Save the widget**

Click **Save**.

![Costory dashboard widget editor showing a budget metric with related actual cost grouped by squad](https://mintcdn.com/costory/7OsIkzfpYdXuwrwn/images/budget-dashboard-actual-spend.png?fit=max\&auto=format\&n=7OsIkzfpYdXuwrwn\&q=85\&s=16e6ecb00e09b5687f9e32bea054e700)

A dashboard widget comparing a budget target with actual spend grouped by squad

## Color palettes

Each chart widget can use one of four color palettes. Switch palettes to keep visuals readable across stacked bars, line charts, and grouped breakdowns. The setting lives in the widget editor's chart display options.

![Chart color palette options in a dashboard](https://mintcdn.com/costory/4RO_44YBsKyrvvT3/images/dashboard/choose-colors.png?fit=max\&auto=format\&n=4RO_44YBsKyrvvT3\&q=85\&s=df19db3395dd91905744e41c8647e4ba)

Choose a chart color palette

## Export widget SQL to BigQuery

BigQuery data exports let you query the same cost data shown in a dashboard widget from your own BigQuery project. Use this when you want to reuse dashboard logic in Looker, notebooks, dbt, or custom SQL without rebuilding filters.

![Copy SQL query action on a dashboard widget](https://mintcdn.com/costory/1x7SbT2zUG6hiSyD/images/dashboard/export-to-sql.png?fit=max\&auto=format\&n=1x7SbT2zUG6hiSyD\&q=85\&s=9880738ba81e552b692d1208e09bb163)

Copy SQL query from a dashboard widget

**1. Set up the BigQuery destination**

Ask an **Organization Admin** to grant your BigQuery user or service account read access to the Costory export table under **Integrations > Destinations**. See [BigQuery Data Exports](https://docs.costory.io/setup/destinations/bigquery.md) for setup.

**2. Open the dashboard widget**

Open the dashboard that contains the widget you want to query outside Costory.

**3. Copy the SQL**

Open the widget action menu and click **Copy SQL query**.

**4. Run the query**

Paste the SQL into BigQuery, Looker, or a notebook that can query BigQuery.

The copied SQL reflects the widget configuration, including metric, filters, group-by, and date range.

## Open in Explorer

To continue an investigation, or to share one widget, open the widget menu and click **Open in Explorer**. Costory takes the widget query, including unsaved edits, into [Explorer](https://docs.costory.io/features/cost-explorer.md). Share it from there with **Link** or **Secure external link**.

**Share widget** still exists. The recipient now lands in Explorer with that query, not back on the dashboard. See [Share cost views](https://docs.costory.io/features/sharing.md#share-one-widget).

## Related links

> [card] [Sharing](https://docs.costory.io/features/sharing.md)
>
> Open a widget in Explorer, then share the query as a link or PNG.

> [card] [Create and organize dashboards](https://docs.costory.io/features/dashboards/create-dashboard.md)
>
> Add widgets to dashboards and organize them for teams.

> [card] [Dashboard templates](https://docs.costory.io/features/dashboards/templates.md)
>
> Start with pre-built FinOps widgets.

> [card] [Unit Economics](https://docs.costory.io/features/unit-economics.md)
>
> Add usage metrics and formulas to the queries behind widgets.

> [card] [BigQuery Data Exports](https://docs.costory.io/setup/destinations/bigquery.md)
>
> Set up the destination used by SQL export.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.