> 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="/files/4jecHNnyyDvhADz6hYb4" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
