# Create Charts

> Source: https://manual.pvxplus.com/how-to/create-charts

In the **[Query Definition](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/query-subsystem/query-definition)**, you can create simple chart definitions based on the columns of a query. These chart definitions can be displayed in the query Lookup Table at run time or used to draw a chart on a panel.

Click the *Define Chart* button on the **Query Definition** toolbar. This launches the **[Chart Wizard](https://manual.pvxplus.com/nomads-autochart/defining-and-displaying-an-autochart#Welcome)**, which guides you through the process of creating, editing or deleting a public **[NOMADS AutoChart](https://manual.pvxplus.com/nomads-autochart/introduction)** definition based on the query data.

![](https://manual.pvxplus.com/migration-assets/8fbf226673d72cef49eda96036b2d124a16d09f082348c6289426264e9fb96f3.png)

Once defined, a public chart definition can be displayed in the **[Run-Time Query](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/query-subsystem/run-time-query)** by anyone whenever the query is displayed in a query Lookup Table.

![](https://manual.pvxplus.com/migration-assets/1550d7369c66fc55348c213345f32912e2f3270bbd5ae771afebacd8b7bfea4f.png)

Note:  
Different chart brands (i.e. Plus, Google, RGraph) are available for displaying the charts. The above example is set in the [%NOMADS'Chart$](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#chart) variable.

The AutoChart definition can also be used to generate chart images that you can add to your application. This is done by using the **[\*TOOLS/CHARTIMAGE](https://manual.pvxplus.com/utilities/chart-image)** utility:

```
CALL "*tools/chartimage", ERR=stmtref, query$, library$, chart$, imgPath$ [,imgWidth, imgHeight]
```

***Example:***

```
CALL "*tools/chartimage","qclient","panels.en","Sales by Sales Rep","sales.png"
```

![](https://manual.pvxplus.com/migration-assets/c27468639310a2b2781424b2d50bc2c23d90fa7888e2bc65edc5e133b4c257d6.jpg)
