# Chart

Xojo provides a <span class="title-ref">Chart</span> control for desktop, mobile and web projects:

- `DesktopChart</api/user_interface/desktop/desktopchart>`
- `MobileChart</api/user_interface/mobile/mobilechart>`
- `WebChart</api/user_interface/web/webchart>`

## Common members

These events, methods and properties are both common amongst the desktop, mobile and web versions of the control and are the most commonly used. See the individual controls for more members and details.

### Events

| Name    | Description                                                               |
|---------|---------------------------------------------------------------------------|
| Pressed | The <span class="title-ref">chart</span> has been pressed/tapped/clicked. |

### Methods

| Name       | Description                                                   |
|------------|---------------------------------------------------------------|
| AddDataset | Adds the dataset to the <span class="title-ref">chart</span>. |

### Properties

| Name | Description                                                                                                                                                       |
|------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Mode | Indicates that the <span class="title-ref">chart</span> is a bar, bubble, doughnut, line, pie, polar area, radar or scatter <span class="title-ref">chart</span>. |

<div class="seealso">

`DesktopChart</api/user_interface/desktop/desktopchart>`, `MobileChart</api/user_interface/mobile/mobilechart>`, and `WebChart</api/user_interface/web/webchart>`

</div>
