Class

# MobileChart

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Displays data you provide in chart form of various types.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                                         | Type                                              | Read-Only | Shared |
|--------------------------------------------------------------|---------------------------------------------------|-----------|--------|
| `AccessibilityHint<mobilechart.accessibilityhint>`           | `String</api/data_types/string>`                  |           |        |
| `AccessibilityLabel<mobilechart.accessibilitylabel>`         | `String</api/data_types/string>`                  |           |        |
| `AllowPopover<mobilechart.allowpopover>`                     | `Boolean</api/data_types/boolean>`                |           |        |
| `AutoCalculateYAxis<mobilechart.autocalculateyaxis>`         | `Boolean</api/data_types/boolean>`                |           |        |
| `Backdrop<mobilechart.backdrop>`                             | `Picture</api/graphics/picture>`                  |           |        |
| `BackgroundColor<mobilechart.backgroundcolor>`               | `ColorGroup</api/graphics/colorgroup>`            |           |        |
| `ControlCount<mobilechart.controlcount>`                     | `Integer</api/data_types/integer>`                | ✓         |        |
| `DatasetCount<mobilechart.datasetcount>`                     | `Integer</api/data_types/integer>`                | ✓         |        |
| `DatasetLastIndex<mobilechart.datasetlastindex>`             | `Integer</api/data_types/integer>`                | ✓         |        |
| `Enabled<mobilechart.enabled>`                               | `Boolean</api/data_types/boolean>`                |           |        |
| `Format<mobilechart.format>`                                 | `String</api/data_types/string>`                  |           |        |
| `GridColor<mobilechart.gridcolor>`                           | `ColorGroup</api/graphics/colorgroup>`            |           |        |
| `HasAnimation<mobilechart.hasanimation>`                     | `Boolean</api/data_types/boolean>`                |           |        |
| `HasLegend<mobilechart.haslegend>`                           | `Boolean</api/data_types/boolean>`                |           |        |
| `Height<mobilechart.height>`                                 | `Integer</api/data_types/integer>`                | ✓         |        |
| `IsGridVisible<mobilechart.isgridvisible>`                   | `Boolean</api/data_types/boolean>`                |           |        |
| `IsYAxisVisible<mobilechart.isyaxisvisible>`                 | `Boolean</api/data_types/boolean>`                |           |        |
| `IsXAxisVisible<mobilechart.isxaxisvisible>`                 | `Boolean</api/data_types/boolean>`                |           |        |
| `LabelCount<mobilechart.LabelCount>`                         | `Integer</api/data_types/integer>`                | ✓         |        |
| `LabelLastIndex<mobilechart.labellastindex>`                 | `Integer</api/data_types/integer>`                | ✓         |        |
| `Left<mobilechart.left>`                                     | `Integer</api/data_types/integer>`                | ✓         |        |
| `LegendColor<mobilechart.legendcolor>`                       | `ColorGroup</api/graphics/colorgroup>`            |           |        |
| `LegendFont<mobilechart.legendfont>`                         | `Font</api/graphics/font>`                        |           |        |
| `LegendFontSize<mobilechart.legendfontsize>`                 | `Double</api/data_types/double>`                  |           |        |
| `LockBottom<mobilechart.lockbottom>`                         | `Boolean</api/data_types/boolean>`                | ✓         |        |
| `LockLeft<mobilechart.lockleft>`                             | `Boolean</api/data_types/boolean>`                | ✓         |        |
| `LockRight<mobilechart.lockright>`                           | `Boolean</api/data_types/boolean>`                | ✓         |        |
| `LockTop<mobilechart.locktop>`                               | `Boolean</api/data_types/boolean>`                | ✓         |        |
| `Mode<mobilechart.mode>`                                     | `Modes<mobilechart.modes>`                        | ✓         |        |
| `Name<mobilechart.name>`                                     | `String</api/data_types/string>`                  | ✓         |        |
| `Parent<mobilechart.parent>`                                 | `Object</api/data_types/additional_types/object>` | ✓         |        |
| `PopoverBackgroundColor<mobilechart.Popoverbackgroundcolor>` | `ColorGroup</api/graphics/colorgroup>`            |           |        |
| `PopoverTextColor<mobilechart.Popovertextcolor>`             | `ColorGroup</api/graphics/colorgroup>`            |           |        |
| `TabIndex<mobilechart.tabindex>`                             | `Integer</api/data_types/integer>`                |           |        |
| `TextColor<mobilechart.textcolor>`                           | `ColorGroup</api/graphics/colorgroup>`            |           |        |
| `TextFont<mobilechart.textfont>`                             | `Font</api/graphics/font>`                        |           |        |
| `TintColor<mobilechart.tintcolor>`                           | `ColorGroup</api/graphics/colorgroup>`            |           |        |
| `Title<mobilechart.title>`                                   | `String</api/data_types/string>`                  |           |        |
| `TitleColor<mobilechart.titlecolor>`                         | `ColorGroup</api/graphics/colorgroup>`            |           |        |
| `TitleFont<mobilechart.titlefont>`                           | `Font</api/graphics/font>`                        |           |        |
| `TitleFontSize<mobilechart.titlefontsize>`                   | `Double</api/data_types/double>`                  |           |        |
| `Tooltip<mobilechart.tooltip>`                               | `String</api/data_types/string>`                  |           |        |
| `Top<mobilechart.top>`                                       | `Integer</api/data_types/integer>`                | ✓         |        |
| `Visible<mobilechart.visible>`                               | `Boolean</api/data_types/boolean>`                |           |        |
| `Width<mobilechart.width>`                                   | `Integer</api/data_types/integer>`                | ✓         |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                               | Parameters                                                                                                                                                | Returns                                                 | Shared |
|----------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|--------|
| `AddConstraint<mobilechart.addconstraint>`         | constraint As `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`, name As `String</api/data_types/string>` = ""                                          |                                                         |        |
| `AddControl<mobilechart.addcontrol>`               | child As `MobileUIControl</api/user_interface/mobile/mobileuicontrol>`, isBeingAdded As `Boolean</api/data_types/boolean>` = `False</api/language/false>` |                                                         |        |
| `AddDataset<mobilechart.adddataset>`               | dataset As `ChartDataset</api/user_interface/charts/chartdataset>`                                                                                        |                                                         |        |
| `AddDatasetAt<mobilechart.adddatasetat>`           | index As `Integer</api/data_types/integer>`, Dataset As `ChartDataset</api/user_interface/charts/chartdataset>`                                           |                                                         |        |
| `AddDatasets<mobilechart.adddatasets>`             | Datasets() As `ChartDataset</api/user_interface/charts/chartdataset>`                                                                                     |                                                         |        |
| `AddLabel<mobilechart.addlabel>`                   | name As `String</api/data_types/string>`                                                                                                                  |                                                         |        |
| `AddLabelAt<mobilechart.addlabelat>`               | index As `String</api/data_types/string>`, name As `String</api/data_types/string>`                                                                       |                                                         |        |
| `AddLabels<mobilechart.addlabels>`                 | names() As `String</api/data_types/string>`                                                                                                               |                                                         |        |
| `ClearFocus<mobilechart.clearfocus>`               |                                                                                                                                                           |                                                         |        |
| `Constraint<mobilechart.constraint>`               | name As `String</api/data_types/string>`                                                                                                                  | `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`     |        |
| `DatasetAt<mobilechart.datasetat>`                 | index As `Integer</api/data_types/integer>`                                                                                                               | `ChartDataset</api/user_interface/charts/chartdataset>` |        |
| `Datasets<mobilechart.datasets>`                   |                                                                                                                                                           | `Iterable</api/language/iterable>`                      |        |
| `Handle<mobilechart.handle>`                       |                                                                                                                                                           | `Ptr</api/data_types/additional_types/ptr>`             |        |
| `LabelAt<mobilechart.labelat>`                     | index As `Integer</api/data_types/integer>`                                                                                                               | `String</api/data_types/string>`                        |        |
| `Labels<mobilechart.labels>`                       |                                                                                                                                                           | `Iterable</api/language/iterable>`                      |        |
| `Refresh<mobilechart.refresh>`                     |                                                                                                                                                           |                                                         |        |
| `RemoveAllDatasets<mobilechart.removealldatasets>` |                                                                                                                                                           |                                                         |        |
| `RemoveAllLabels<mobilechart.removealllabels>`     |                                                                                                                                                           |                                                         |        |
| `RemoveConstraint<mobilechart.removeconstraint>`   | constraint As `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`                                                                                         |                                                         |        |
|                                                    | name As `String</api/data_types/string>`                                                                                                                  |                                                         |        |
| `RemoveControl<mobilechart.removecontrol>`         | child As `MobileUIControl</api/user_interface/mobile/mobileuicontrol>`                                                                                    |                                                         |        |
| `RemoveDatasetAt<mobilechart.removedatasetat>`     | index As `Integer</api/data_types/integer>`                                                                                                               |                                                         |        |
| `RemoveLabelAt<mobilechart.removelabelat>`         | index As `Integer</api/data_types/integer>`                                                                                                               |                                                         |        |
| `SetFocus<mobilechart.setfocus>`                   |                                                                                                                                                           |                                                         |        |
| `ToPicture<mobilechart.topicture>`                 | width As `Double</api/data_types/double>` = -1, height As `Double</api/data_types/double>` = -1                                                           | `Picture</api/graphics/picture>`                        |        |
|                                                    | width As `Double</api/data_types/double>` = -1, height As `Double</api/data_types/double>` = -1                                                           |                                                         |        |

## Events

<div class="rst-class">

table-centered_column_4

</div>

| Name                                               | Parameters                                                                                                         | Returns |
|----------------------------------------------------|--------------------------------------------------------------------------------------------------------------------|---------|
| `AppearanceChanged<mobilechart.appearancechanged>` | dark As `Boolean</api/data_types/boolean>`                                                                         |         |
| `Closing<mobilechart.closing>`                     |                                                                                                                    |         |
| `Error<mobilechart.error>`                         | DataSet As `ChartDataSet</api/user_interface/charts/chartdataset>`                                                 |         |
| `Opening<mobilechart.opening>`                     |                                                                                                                    |         |
| `PointerDrag<mobilechart.pointerdrag>`             | position As `Point</api/graphics/point>`, pointerInfo() As `PointerEvent</api/user_interface/mobile/pointerevent>` |         |
| `PointerUp<mobilechart.pointerup>`                 | position As `Point</api/graphics/point>`, pointerInfo() As `PointerEvent</api/user_interface/mobile/pointerevent>` |         |
| `Pressed<mobilechart.pressed>`                     | dataset As `ChartDataset</api/user_interface/charts/chartdataset>`, index As `Integer</api/data_types/integer>`    |         |
| `RequestedPicture<mobilechart.requestedpicture>`   | chart As `Picture</api/graphics/picture>`                                                                          |         |

## Enumerations

<div id="mobilechart.modes">

<div class="rst-class">

forsearch

</div>

</div>

MobileChart.Modes

### Modes

> The various types of charts available.
>
> | Enum      |
> |-----------|
> | Bar       |
> | Bubble    |
> | Doughnut  |
> | Line      |
> | Pie       |
> | PolarArea |
> | Radar     |
> | Scatter   |
> | Stacked   |

## Property descriptions

<div id="mobilechart.accessibilityhint">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.AccessibilityHint

**AccessibilityHint** As `String</api/data_types/string>`

> The accessibility hint is a longer description that is read aloud when VoiceOver is enabled.
>
> ``` xojo
> Me.AccessibilityHint = "Click to calculate the value and display the next screen."
> ```
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This property is not currently supported for Android.
>
> </div>

<div id="mobilechart.accessibilitylabel">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.AccessibilityLabel

**AccessibilityLabel** As `String</api/data_types/string>`

> The accessibility label of of a control is a short name that is read aloud when VoiceOver is enabled.
>
> ``` xojo
> Me.AccessibilityLabel = "Calculate the value."
> ```

<div id="mobilechart.allowpopover">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.AllowPopover

**AllowPopover** As `Boolean</api/data_types/boolean>`

> If `True</api/language/true>`, a popover will be displayed when the user positions the mouse over items that have additional information.
>
> The default value is `True</api/language/true>`.

<div id="mobilechart.autocalculateyaxis">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.AutoCalculateYAxis

**AutoCalculateYAxis** As `Boolean</api/data_types/boolean>`

> If `False</api/language/false>`, the Y axis for Line and Bar charts will start at 0.
>
> This property is `True</api/language/true>` by default.

<div id="mobilechart.backdrop">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Backdrop

**Backdrop** As `Picture</api/graphics/picture>`

> The passed `Picture</api/graphics/picture>` that will automatically be drawn behind the chart data.
>
> The following code assigns a jpg image to the Backdrop. The image has been added to the project. The code is in the Opening event.
>
> ``` xojo
> Me.BackDrop = HouseImage
> ```

<div id="mobilechart.backgroundcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.BackgroundColor

**BackgroundColor** As `ColorGroup</api/graphics/colorgroup>`

> The color of the background of the chart.

<div id="mobilechart.controlcount">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.ControlCount

**ControlCount** As `Integer</api/data_types/integer>`

> The number of child controls in the control.
>
> This property is read-only.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This property is supported for iOS only.
>
> </div>

<div id="mobilechart.datasetcount">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.DatasetCount

**DatasetCount** As `Integer</api/data_types/integer>`

> The number of datasets that have been added to the chart.
>
> This property is read-only.

<div id="mobilechart.datasetlastindex">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.DatasetLastIndex

**DatasetLastIndex** As `Integer</api/data_types/integer>`

> The index of last dataset added to the chart.
>
> This property is read-only.

<div id="mobilechart.enabled">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Enabled

**Enabled** As `Boolean</api/data_types/boolean>`

> When `True</api/language/true>` the control is drawn enabled and responds to user action. When `False</api/language/false>`, the control appears as disabled and does not respond to user actions.

<div id="mobilechart.format">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Format

**Format** As `String</api/data_types/string>`

> Used to format axis values.
>
> It uses the same formatting conventions as the `Format</api/text/format>` function.

<div id="mobilechart.gridcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.GridColor

**GridColor** As `ColorGroup</api/graphics/colorgroup>`

> The color of the chart's grid.

<div id="mobilechart.hasanimation">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.HasAnimation

**HasAnimation** As `Boolean</api/data_types/boolean>`

> If `True</api/language/true>`, changes to chart data will result in animated updates to the chart.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This property is not supported for iOS.
>
> </div>

<div id="mobilechart.haslegend">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.HasLegend

**HasLegend** As `Boolean</api/data_types/boolean>`

> If `True</api/language/true>`, the chart's legend will be displayed.

<div id="mobilechart.height">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Height

**Height** As `Integer</api/data_types/integer>`

> The height of the control.
>
> This property is read-only on iOS.

<div id="mobilechart.isgridvisible">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.IsGridVisible

**IsGridVisible** As `Boolean</api/data_types/boolean>`

> Determines if the grid will be drawn or not.

<div id="mobilechart.isyaxisvisible">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.IsYAxisVisible

**IsYAxisVisible** As `Boolean</api/data_types/boolean>`

> Determines if the Y axis will be drawn or not.

<div id="mobilechart.isxaxisvisible">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.IsXAxisVisible

**IsXAxisVisible** As `Boolean</api/data_types/boolean>`

> Determines if the X axis will be drawn or not.

<div id="mobilechart.labelcount">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.LabelCount

**LabelCount** As `Integer</api/data_types/integer>`

> The number of labels in the chart.
>
> This property is read-only.

<div id="mobilechart.labellastindex">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.LabelLastIndex

**LabelLastIndex** As `Integer</api/data_types/integer>`

> The index of last label added to the chart.
>
> This property is read-only.

<div id="mobilechart.left">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Left

**Left** As `Integer</api/data_types/integer>`

> The position of the left side of the control, relative to the screen.
>
> This property is read-only on iOS.

<div id="mobilechart.legendcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.LegendColor

**LegendColor** As `ColorGroup</api/graphics/colorgroup>`

> Gets or sets the color of the legend. The default value is black.
>
> The following example sets the LegendColor.
>
> ``` xojo
> Me.LegendColor = Color.Red
> ```

<div id="mobilechart.legendfont">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.LegendFont

**LegendFont** As `Font</api/graphics/font>`

> Name of the font used to display the chart legend.
>
> You can enter any font that is installed in the browser or the names of the two metafonts, "System" and "SmallSystem".
>
> This code sets the LegendFont property.
>
> ``` xojo
> Me.LegendFont = New Font("Helvetica", 24)
> ```

<div id="mobilechart.legendfontsize">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.LegendFontSize

**LegendFontSize** As `Double</api/data_types/double>`

> Point size of the font used to display the legend.
>
> If you enter zero as the FontSize, your app will use the font size that works best for the platform on which it is running.
>
> This code sets the font size to 16 points.
>
> ``` xojo
> Me.LegendFontSize = 16
> ```

<div id="mobilechart.lockbottom">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.LockBottom

**LockBottom** As `Boolean</api/data_types/boolean>`

> Determines whether the bottom edge of the control should stay at a set distance from the bottom edge of the parent control, if there is one, or the owning screen.
>
> This property is read-only.

<div id="mobilechart.lockleft">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.LockLeft

**LockLeft** As `Boolean</api/data_types/boolean>`

> Determines whether the left edge of the control should stay at a set distance from the left edge of the parent control, if there is one, or the owning screen.
>
> This property is read-only.

<div id="mobilechart.lockright">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.LockRight

**LockRight** As `Boolean</api/data_types/boolean>`

> Determines whether the right edge of the control should stay at a set distance from the right edge of the parent control, if there is one, or the owning screen.
>
> This property is read-only.

<div id="mobilechart.locktop">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.LockTop

**LockTop** As `Boolean</api/data_types/boolean>`

> Determines whether the top edge of the control should stay at a set distance from the top edge of the parent control, if there is one, or the owning screen.
>
> This property is read-only.

<div id="mobilechart.mode">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Mode

**Mode** As `Modes<mobilechart.modes>`

> Indicates the type of chart the control is currently displaying.
>
> This property is read-only.
>
> Labels are required for a Bar chart to draw.
>
> This example checks the mode of the chart:
>
> ``` xojo
> If Chart1.Mode = MobileChart.Modes.Bar then
>   Chart1.Title = "Sales Bar Chart"
> End If
> ```

<div id="mobilechart.name">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Name

**Name** As `String</api/data_types/string>`

> The name of the control.
>
> This property is read-only.

<div id="mobilechart.parent">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Parent

**Parent** As `Object</api/data_types/additional_types/object>`

> Used to get the control's parent control or page. If the parent control is a `MobileContainer</api/user_interface/mobile/mobilecontainer>`, then it returns the `MobileContainer</api/user_interface/mobile/mobilecontainer>`. If it is on a `Screen</api/user_interface/mobile/mobilescreen>`, it returns the `Screen</api/user_interface/mobile/mobilescreen>`.
>
> This property is read-only.

<div id="mobilechart.Popoverbackgroundcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.PopoverBackgroundColor

**PopoverBackgroundColor** As `ColorGroup</api/graphics/colorgroup>`

> The background color of the chart's popover.

<div id="mobilechart.Popovertextcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.PopoverTextColor

**PopoverTextColor** As `ColorGroup</api/graphics/colorgroup>`

> The color of text in the chart's popover.

<div id="mobilechart.tabindex">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.TabIndex

**TabIndex** As `Integer</api/data_types/integer>`

> The control's position in the Tab Order. The control with a TabIndex of 0 is the first control to get the focus when the Screen is displayed.
>
> This example sets the control's TabIndex.
>
> ``` xojo
> Me.TabIndex = 2
> ```

<div id="mobilechart.textcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Mobilechart.TextColor

**TextColor** As `ColorGroup</api/graphics/colorgroup>`

> Gets or sets the color of the text. The default value is black.
>
> The following example sets the TextColor.
>
> ``` xojo
> Me.TextColor = Color.Red
> ```

<div id="mobilechart.textfont">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.TextFont

**TextFont** As `Font</api/graphics/font>`

> The font used to display the text content.
>
> You can use any font that is installed on the device.
>
> The System font is the font used by the system software as its default font. Different operating systems use different default fonts. If the system software supports both a large and small System font, you can also specify the "SmallSystem" font.
>
> On iOS, *SmallSystem* specifies the smaller system font.
>
> This code sets the TextFont property to the System font.
>
> ``` xojo
> Me.TextFont = Font.SystemFont
> ```

<div id="mobilechart.tintcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.TintColor

**TintColor** As `ColorGroup</api/graphics/colorgroup>`

> Changes a control's tint color.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This is supported for iOS only.
>
> </div>
>
> On iOS, the following controls support TintColor:
>
> | Enum        | Description                                                                  |
> |-------------|------------------------------------------------------------------------------|
> | PopupMenu   | The background color will be drawn in the TintColor.                         |
> | ProgressBar | The area indicating the value of the control will be drawn in the TintColor. |
> | Slider      | The area indicating the value of the control will be drawn in the TintColor. |
> | TextArea    | The cursor and text highlight color will be drawn in the TintColor.          |
> | TextField   | The cursor and text highlight color will be drawn in the TintColor.          |

<div id="mobilechart.title">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Title

**Title** As `String</api/data_types/string>`

> The title of the chart.

<div id="mobilechart.titlecolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.TitleColor

**TitleColor** As `ColorGroup</api/graphics/colorgroup>`

> Gets or sets the color of the title. The default value is black.
>
> The following example sets the <span class="title-ref">TitleColor</span>.
>
> ``` xojo
> Me.TitleColor = Color.Red
> ```

<div id="mobilechart.titlefont">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.TitleFont

**TitleFont** As `Font</api/graphics/font>`

> Name of the font used to display the chart title.
>
> You can enter any font that is installed in the browser or the names of the two metafonts, "System" and "SmallSystem".
>
> This code sets the TitleFont property.
>
> ``` xojo
> Me.TitleFont = New Font("Helvetica", 24)
> ```

<div id="mobilechart.titlefontsize">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.TitleFontSize

**TitleFontSize** As `Double</api/data_types/double>`

> Point size of the font used to display the title.
>
> If you enter zero as the FontSize, your app will use the font size that works best for the platform on which it is running.
>
> This code sets the font size to 16 points.
>
> ``` xojo
> Me.TitleFontSize = 16
> ```

<div id="mobilechart.tooltip">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Tooltip

**Tooltip** As `String</api/data_types/string>`

> Text of a message displayed as a tooltip.
>
> The tip is displayed when the user places the mouse on the control and leaves it there.
>
> This code in the Opening event of a Button sets the tooltip:
>
> ``` xojo
> Me.Tooltip = "Save changes"
> ```

<div id="mobilechart.top">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Top

**Top** As `Integer</api/data_types/integer>`

> The top of the control in local coordinates relative to the Screen.
>
> This property is read-only on iOS.

<div id="mobilechart.visible">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Visible

**Visible** As `Boolean</api/data_types/boolean>`

> If `True</api/language/true>`, the control is drawn. If `False</api/language/false>`, it's not.
>
> Hide a control based on a checkbox setting:
>
> ``` xojo
> If ShowEmailCheckbox.Value Then
>   EmailField.Visible = True
> Else
>   EmailField.Visible = False
> End If
> ```

<div id="mobilechart.width">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Width

**Width** As `Integer</api/data_types/integer>`

> The width of the control.
>
> This property is read-only on iOS.
>
> This code in the Opening event handler increases the size of the control:
>
> ``` xojo
> Me.Width = Me.Width + 50
> ```

## Method descriptions

<div id="mobilechart.addconstraint">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.AddConstraint

**AddConstraint**(constraint As `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`, name As `String</api/data_types/string>` = "")

> Adds a *constraint* to the control. The optional *name* parameter can be used to `remove a constraint<mobileuicontrol.removeconstraint>` that was added via code.
>
> This *constraint* is used by child controls that have been added to this control.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This is supported for iOS only.
>
> </div>

<div id="mobilechart.addcontrol">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.AddControl

**AddControl**(child As `MobileUIControl</api/user_interface/mobile/mobileuicontrol>`, isBeingAdded As `Boolean</api/data_types/boolean>` = `False</api/language/false>`)

> Adds a *child* control to the control. When the value of *isBeingAdded* is `True</api/language/true>`, the Opening event is triggered for the child control being added.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This is supported for iOS only.
>
> </div>

<div id="mobilechart.adddataset">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.AddDataset

**AddDataset**(dataset As `ChartDataset</api/user_interface/charts/chartdataset>`)

> Adds the *dataset* to the chart. Incompatible datasets are ignored.

<div id="mobilechart.adddatasetat">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.AddDatasetAt

**AddDatasetAt**(index As `Integer</api/data_types/integer>`, dataset As `ChartDataset</api/user_interface/charts/chartdataset>`)

> Adds the *dataset* to the chart at the *index* passed. Incompatible datasets are ignored.

<div id="mobilechart.adddatasets">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.AddDatasets

**AddDatasets**(datasets() As `ChartDataset</api/user_interface/charts/chartdataset>`)

> Adds the array of *datasets* to the chart.

<div id="mobilechart.addlabel">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.AddLabel

**AddLabel**(name As `String</api/data_types/string>`)

> Adds the label to the chart.

<div id="mobilechart.addlabelat">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.AddLabelAt

**AddLabelAt**(index As `String</api/data_types/string>`, name As `String</api/data_types/string>`)

> Adds the label to the chart at the *index* passed.

<div id="mobilechart.addlabels">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.AddLabels

**AddLabels**(names() As `String</api/data_types/string>`)

> Adds the array of labels to the chart.

<div id="mobilechart.clearfocus">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.ClearFocus

**ClearFocus**

> Removes the focus from the control.
>
> ``` xojo
> TextField1.ClearFocus
> ```

<div id="mobilechart.constraint">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Constraint

**Constraint**(name As `String</api/data_types/string>`) As `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`

> Gets a reference to a named constraint so that you can modify its settings in code.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This is supported for iOS only.
>
> </div>
>
> Change an existing (and named) constraint of a control on the Screen:
>
> ``` xojo
> ' "TAWidth" is a width constraint for a TextField that has been given
> ' a name in the auto-layout Inspector properties.
> Var c As iOSLayoutConstraint = Self.Constraint("TAWidth")
> c.Offset = 200
> ```

<div id="mobilechart.controlat">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.ControlAt

**ControlAt**(index As `Integer</api/data_types/integer>`) As MobileUIControl

> Gets the child control at the specified *index*.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This is supported for iOS only.
>
> </div>

<div id="mobilechart.controls">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Controls

**Controls** As `Iterable</api/language/iterable>`

> Allows you to iterate through all the controls that have been added to this control.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This is supported for iOS only.
>
> </div>

<div id="mobilechart.datasetat">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.DatasetAt

**DatasetAt**(index As `Integer</api/data_types/integer>`) As `ChartDataset</api/user_interface/charts/chartdataset>`

> Returns the `ChartDataset</api/user_interface/charts/chartdataset>` at the *index* passed.

<div id="mobilechart.datasets">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Datasets

**Datasets**() As `Iterable</api/language/iterable>`

> Allows iterating through all data sets.

<div id="mobilechart.handle">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Handle

**Handle** As `Ptr</api/data_types/additional_types/ptr>`

> The handle to the underlying native OS control.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This is supported for iOS only.
>
> </div>

<div id="mobilechart.labelat">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.LabelAt

**LabelAt**(index As `Integer</api/data_types/integer>`) As `String</api/data_types/string>`

> Returns the label at the *index* passed.

<div id="mobilechart.labels">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Labels

**Labels**() As `Iterable</api/language/iterable>`

> Allows iterating through all labels.

<div id="mobilechart.refresh">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Refresh

**Refresh**

> Marks the control so that it will be redrawn during the next event loop.
>
> Call Refresh to force a Canvas to redraw itself:
>
> ``` xojo
> Canvas1.Refresh
> ```

<div id="mobilechart.removealldatasets">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.RemoveAllDatasets

**RemoveAllDatasets**

> Removes all datasets from the chart.

<div id="mobilechart.removealllabels">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.RemoveAllLabels

**RemoveAllLabels**

> Removes all labels from the chart.

<div id="mobilechart.removeconstraint">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.RemoveConstraint

**RemoveConstraint**(constraint As `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`)

> Removes a *constraint* from the control.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This is supported for iOS only.
>
> </div>

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

**RemoveConstraint**(name As `String</api/data_types/string>`)

> Removes the constraint with the *name* passed from the `Screen</api/user_interface/mobile/mobilescreen>`.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This is supported for iOS only.
>
> </div>

<div id="mobilechart.removecontrol">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.RemoveControl

**RemoveControl**(child As `MobileUIControl</api/user_interface/mobile/mobileuicontrol>`)

> Removes the control from the control.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This is supported for iOS only.
>
> </div>

<div id="mobilechart.removedatasetat">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.RemoveDatasetAt

**RemoveDatasetAt**(index As `Integer</api/data_types/integer>`)

> Removes the `ChartDataset</api/user_interface/charts/chartdataset>` at the *index* passed.

<div id="mobilechart.removelabelat">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.RemoveLabelAt

**RemoveLabelAt**(index As `Integer</api/data_types/integer>`)

> Removes the label at the *index* passed.

<div id="mobilechart.setfocus">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.SetFocus

**SetFocus**

> Sets the focus to the <span class="title-ref">MobileChart</span> control.

<div id="mobilechart.topicture">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.ToPicture

**ToPicture**(width As `Double</api/data_types/double>` = -1, height As `Double</api/data_types/double>` = -1) As `Picture</api/graphics/picture>`

> Returns the chart as a `Picture</api/graphics/picture>` at the size specified by the *width* and *height* parameters. If these parameters are not specified, the `Picture</api/graphics/picture>` is created using the dimensions of the chart.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is not supported for Android.
>
> </div>

**ToPicture**(width As `Double</api/data_types/double>` = -1, height As `Double</api/data_types/double>` = -1)

> Creates a `Picture</api/graphics/picture>` from the the chart at the size specified by the *width* and *height* parameters. If these parameters are not specified, the `Picture</api/graphics/picture>` is created using the dimensions of the chart. The `Picture</api/graphics/picture>` is returned via the `RequestedPicture<mobilechart.requestedpicture>` event.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is not supported for iOS.
>
> </div>

## Event descriptions

<div id="mobilechart.appearancechanged">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.AppearanceChanged

**AppearanceChanged**(dark As `Boolean</api/data_types/boolean>`)

> If *dark* is `True</api/language/true>` then the device has switched to Dark mode. If `False</api/language/false>` then the device has switched to Light mode.

<div id="mobilechart.closing">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Closing

**Closing**

> The control is about to be removed from the Screen either because the Screen is closing or the control's Close method was called.

<div id="mobilechart.error">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Error

**Error**(DataSet As `ChartDataSet</api/user_interface/charts/chartdataset>`)

> The chart either has no room to display the data or is too small to draw the grid. The *DataSet* is the `ChartDataSet</api/user_interface/charts/chartdataset>` assigned to the control.

<div id="mobilechart.opening">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Opening

**Opening**

> The control has been created and the page is opening but has not been sent to the browser yet.
>
> The Opening event handler can be used to initialize non-visual properties and settings for controls.

<div id="mobilechart.pointerdrag">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.PointerDrag

**PointerDrag**(position As `Point</api/graphics/point>`, pointerInfo() As `PointerEvent</api/user_interface/mobile/pointerevent>`)

> Called when the pointing device (finger or pen) is dragged.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This event is not supported for Android.
>
> </div>

<div id="mobilechart.pointerup">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.PointerUp

**PointerUp**(position As `Point</api/graphics/point>`, pointerInfo() As `PointerEvent</api/user_interface/mobile/pointerevent>`)

> Called when the pointing device (finger or pen) is raised or released.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This event is not supported for Android.
>
> </div>

<div id="mobilechart.pressed">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.Pressed

**Pressed**(dataset As `ChartDataset</api/user_interface/charts/chartdataset>`, index As `Integer</api/data_types/integer>`)

> The user pressed on a part of the chart that represents data from the *dataset*.

<div id="mobilechart.requestedpicture">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileChart.RequestedPicture

**RequestedPicture**(chart As `Picture</api/graphics/picture>`)

> This event is called when the `ToPicture<mobilechart.topicture>` method and is passed a `Picture</api/graphics/picture>` representing the chart.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This event is not supported for iOS.
>
> </div>

## Compatibility

|                       |        |
|-----------------------|--------|
| **Project Types**     | Mobile |
| **Operating Systems** | All    |

<div class="seealso">

`MobileCanvas</api/user_interface/mobile/mobilecanvas>` parent class; `ChartCircularDataset</api/user_interface/charts/chartcirculardataset>`, `ChartDataset</api/user_interface/charts/chartdataset>`, `ChartLinearDataset</api/user_interface/charts/chartlineardataset>` and `ChartScatterDatapoint</api/user_interface/charts/chartscatterdatapoint>` classes.

</div>
