> For the complete documentation index, see [llms.txt](https://docs.ox.security/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ox.security/generate-reports/custom-reports/add-a-custom-visualization.md).

# Add a Custom Chart

Create a chart that shows grouped counts from a data source. Use it for aggregated views such as Issues by Severity or Issues by Application.

<figure><img src="https://884876233-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdK3XMLdV8zRg847RmGmZ%2Fuploads%2Fgit-blob-bc2459797a6de04e246c0a697e2224862e91c8fa%2Fadd_widget_charts2.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

### Screen areas

| Area             | Description                                                                                                                                        |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| Widget name      | Title for the chart tile. Edit before adding.                                                                                                      |
| Data source      | Dataset to visualize, for example Issues.                                                                                                          |
| Group by         | Primary field that buckets the counts, for example Severity, Application, Category.                                                                |
| Add sub-group by | Optional second split that creates series within each group.                                                                                       |
| Date range       | <p>Time window for the calculation.<br>Available for the following data sources:<br>- Pipeline Issues<br>- Resolved Issues<br>- Removed Issues</p> |
| Filters          | Values that limit data for this widget only. Common filters: Application, Severity, Category, App Tag. Select Additional filters to see more.      |
| Preview          | Live chart preview. The preview may show only the top results.                                                                                     |
| Chart type       | Picker for pie, column, area, or line.                                                                                                             |
| Add widget       | Adds the configured chart to the report.                                                                                                           |

**To create a custom visualization:**

1. In **Custom Reports**, select **ADD WIDGET > Custom Chart**.
2. In **Widget name**, enter a clear title.
3. In the **Data source**, select the dataset.
4. In the **Group by**, select the primary field.
5. To split each group into series, select **Add sub-group by** and choose a field.
6. If available for the selected source, configure the **Date range**.

   > **Note:**\
   > The global date range overrides the widget’s saved date range. When no global date range is selected, the widget uses its own configuration.
7. Open **Filters** and set any values you need for this widget.
8. In the chart picker, choose pie, column, area, or line.
9. Review the **Preview** to confirm the layout.
10. Select **ADD WIDGET**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ox.security/generate-reports/custom-reports/add-a-custom-visualization.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
