# Chart

<div align="left"><img src="https://963067965-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MIJW5nbmYRaSNWePAac%2F-MIxu2KP4MClY9gv_q2W%2F-MIxukR_cCTgLJpRy8-b%2FProperty-Charts.png?alt=media&#x26;token=da2f8bf2-9e1e-44b2-9ad3-fc369bedb267" alt=""></div>

| Property        | Function                                                                                                                                                                                             | Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Type            | <p>Chart type<br><br><strong>Actions editor:</strong><br><code>Property > Charts > Type</code><br><strong>Code:</strong><br><code>widget.content.chartType</code></p>                                | <p><code>enum</code><br><br><strong>Values:</strong><br><code>CChartModel::LineChart</code><br><code>CChartModel::SplineChart</code><br><code>CChartModel::ScatterChart</code><br><code>CChartModel::PieChart</code><br><code>CChartModel::HBarChart</code><br><code>CChartModel::VBarChart</code><br><code>CChartModel::HPercentBarChart</code><br><code>CChartModel::VPercentBarChart</code><br><code>CChartModel::HStackedBar</code><br><code>CChartModel::VStackedBar</code></p> |
| Legend position | <p>Legend position on chart<br><br><strong>Actions editor:</strong><br><code>Property > Charts > Legend position</code><br><strong>Code:</strong><br><code>widget.content.legendAlignment</code></p> | <p><code>enum</code><br><br><strong>Values:</strong><br><code>Qt::AlignLeft</code><br><code>Qt::AlignRight</code><br><code>Qt::AlignTop</code><br><code>Qt::AlignBottom</code></p>                                                                                                                                                                                                                                                                                                   |
| Show legend     | <p>Display chart legend<br><br><strong>Actions editor:</strong><br><code>Property > Charts > Show legend</code><br><strong>Code:</strong><br><code>widget.content.legendVisible</code></p>           | `bool`                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Width           | <p>Chart line width<br><br><strong>Actions editor:</strong><br><code>Property > Charts > Width</code><br><strong>Code:</strong><br><code>widget.content.lineWidth</code></p>                         | `int`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Hole size       | <p>Sets hole size<br><br><strong>Actions editor:</strong><br><code>Property > Charts > Hole size</code><br><strong>Code:</strong><br><code>widget.content.holeSize</code></p>                        | `double`                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Angle           | <p>Sets angle<br><br><strong>Actions editor:</strong><br><code>Property > Charts > Angle</code><br><strong>Code:</strong><br><code>widget.content.angle</code></p>                                   | `int`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Y axis          | <p>Display y axis<br><br><strong>Actions editor:</strong><br><code>Property > Charts > Y axis</code><br><strong>Code:</strong><br><code>widget.content.yAxis</code></p>                              | `bool`                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| X axis          | <p>Display x axis<br><br><strong>Actions editor:</strong><br><code>Property > Charts > X axis</code><br><strong>Code:</strong><br><code>widget.content.xAxis</code></p>                              | `bool`                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Y labels        | <p>Display y labels<br><br><strong>Actions editor:</strong><br><code>Property > Charts > Y labels</code><br><strong>Code:</strong><br><code>widget.content.yLabelVisible</code></p>                  | `bool`                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| X labels        | <p>Display x labels<br><br><strong>Actions editor:</strong><br><code>Property > Charts > X labels</code><br><strong>Code:</strong><br><code>widget.content.xLabelVisible</code></p>                  | `bool`                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Y grid          | <p>Display y grid<br><br><strong>Actions editor:</strong><br><code>Property > Charts > Y grid</code><br><strong>Code:</strong><br><code>widget.content.yGridVisible</code></p>                       | `bool`                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| X grid          | <p>Display x grid<br><br><strong>Actions editor:</strong><br><code>Property > Charts > X grid</code><br><strong>Code:</strong><br><code>widget.content.xGridVisible</code></p>                       | `bool`                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Label size      | <p>Sets label size<br><br><strong>Actions editor:</strong><br><code>Property > Charts > Label size</code><br><strong>Code:</strong><br><code>widget.content.labelSize</code></p>                     | `int`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
