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

# Manage widgets

> Add, configure, and arrange widgets — the saved-query cards that make up a Report.

A **widget** is a single saved [AftersellQL query](/aftersell/reports_explorer#writing-aql-queries) rendered as a visualization on a report. A report is simply a grid of widgets.

<Note>
  A "widget" here means a widget on a Report. It is not the same as the shopper-facing [checkout widgets](/aftersell/checkout_widget_types) or [post-purchase widgets](/aftersell/post_purchase_widgets), which are upsell offers shown to your customers.
</Note>

***

## Adding a widget

There are two ways to add a widget to a report:

* **Drag an existing widget from the Widgets sidebar.** While editing a report (click **Edit report** — see [Manage reports](/aftersell/reports_dashboards)), drag an already-created widget from the **Widgets** sidebar onto the canvas.
* **Click Add widget from the report.** From the report's main view, click **Add widget** to build a new query in the Explorer and add it to the report. Once saved, your widget will be added directly to the Report canvas.

***

## Visualizations

Depending on the query's shape, a widget renders as one of:

* **Scorecard** — a single headline number, for queries with no breakdown.
* **Line chart** — a trend over time.
* **Bar chart** — a comparison across a dimension.
* **Table** — rows of values, for detailed or multi-dimension queries.

The Explorer recommends a default visualization for each query, and the widget uses it.

***

## Arranging widgets

In edit mode you can drag widgets to reorder them and resize them on the grid. When you are done, click **Save** to keep your layout, or **Cancel** to discard your changes.

***

## Deleting a widget

You can permanently delete a saved widget from the Explorer. Deleting a widget also removes it from every report it appears on.

To delete a widget:

1. Open the **Explorer** in your Aftersell admin.
2. Load the widget you want to delete by selecting it from the widget list.
3. Click **Delete** in the Explorer title bar.
4. Confirm the deletion in the dialog that appears.

The widget is permanently removed and any report cards that referenced it are automatically cleaned up.

<Note>
  The **Delete** button is only shown for widgets you created. Global template widgets are read-only and cannot be deleted.
</Note>

***

## Need help?

If you have questions about widgets, reach out to the customer support team.
