---
title: "Confluence Chart macro"
canonical: "https://support.appfire.com/space/CDML/650152640/Confluence%20Chart%20macro"
format: markdown
---
> Macro (aura-html)


The **Chart **macro, bundled with Confluence, in conjunction with the **[Document Stats Report](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649889641)**[ macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649889641), provides a great way to create graphical summaries of workflow states in your content.

## Stats table

Start by adding the **[Document Stats Report](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649889641)**[ macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649889641) to a page

You can choose **Preview **to check the results:

![image](media://05f46afa-a2b6-49dc-b08d-b12855b99c82)

## Chart macro

Now you've got the expected output from the **[Document Stats Report](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649889641)**[ macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649889641), it's time to add the **Chart** macro.

Copy and paste the **Document Stats Report** macro into the body of the **Chart** macro.

![image](media://c9b50e3a-367c-4ea1-b623-b916f117d63d)

#### Report columns

The **Chart** macro assumes the first column, **0**, is a series name, but the **Document Stats Report** macro uses it for the first state.

In the Chart macro's **Columns** setting, add the number **0 **and then enter a comma-separated list of the states you want (the Document Stats Report column headings)

For example, to display the following workflow states: **Editing**, **Approved**, **Published,** and **In Progress**, add the following

- "0, Editing, Approved, Published,  In Progress" (a total of 4 columns or 4 pie segments)

The chart macro with the document stats macro in the body is displayed in the page editor.

![image](media://012e8dbd-ba34-4ec7-a78e-3de60f9a9b3d)

Here, we have used the chart macro to display the chosen document stats report information as a pie chart.

![image](media://16e9ee57-5ec0-49df-9a6b-4aabab91ce7e)

Here, we have limited the chart display to the **Approved** and **Published** states in the pie chart by adding "0, Editing, Approved, Published" to **columns** in the chart macro

![image](media://ebe037c6-db2e-41cd-8fd8-022877f661dd)

As you can see, this is a good way to provide reporting for documentation dashboards.

> ✅ You can increase the capability of your visual reporting by using the app [integration with Appfire Dashboard Hub](https://appfire.atlassian.net/wiki/spaces/CDML/pages/953155637).

## See also

**[Reporting Guide](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649070833)**

- [Document Stats Report](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649889641)

**[Workflow Authoring Guide](https://appfire.atlassian.net/wiki/spaces/CDML/pages/648611901)**

- [States](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649595551)
- [document stats report macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649793642)

**External Links**

- [Chart macro](https://confluence.atlassian.com/doc/chart-macro-163415075.html)