# Add a Bar Chart

We will now add a bar chart that will illustrate the "machines by type" information.

To add a chart:

1. On the main menu, click **Insert** > **Chart** > **Insert Chart** and then click in the middle of the main report area.
2. In the **Select Chart Type** dialog that opens, select the first item in the **Column** section and click **OK**.

Double click on the chart and then delete the **Details** group from the **Category Groups** section by right-clicking it and choosing **Delete Category Group.**

Now do the following:

1. Double-click the chart header and type **Summary** as the title.
2. Add the **Machine\_Name** field to the **Values** section by clicking the green plus-sign icon.
3. Add the **Machine\_Type** field to the **Series Groups** section.
4. Click on the arrow on the **Machine\_Type** row and choose **Series Group Properties**.

In the **Series Group Properties** dialog, select the **Sorting** tab and set the **Sort by** field to **\[SortingID]**. Click **OK**.


---

# Agent Instructions: 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:

```
GET https://docs.parallels.com/landing/ras-reporting-service-guide/v19/creating-custom-reports/example-report-with-charts/design-the-report/add-a-bar-chart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
