<div class="meta" robots="noindex">

</div>

Class

# WebChartCircularDataset

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

<div class="warning">

<div class="title">

Warning

</div>

This class was deprecated in version 2023r1. Please use `ChartCircularDataset</api/user_interface/charts/chartcirculardataset>` as a replacement.

</div>

## Description

A dataset that can be used with Doughnut, Pie, PolarArea and Radar chart types.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                   | Type                               | Read-Only | Shared |
|----------------------------------------|------------------------------------|-----------|--------|
| `Fill<webchartcirculardataset.fill>`   | `Boolean</api/data_types/boolean>` |           |        |
| `Label<webchartcirculardataset.label>` | `String</api/data_types/string>`   |           |        |
| `Tag<webchartcirculardataset.tag>`     | `Variant</api/data_types/variant>` |           |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                                   | Parameters                                                                                                                              | Returns                          | Shared |
|--------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|----------------------------------|--------|
| `AddRow<webchartcirculardataset.addrow>`               | Value As `Double</api/data_types/double>`, ValueColor As `Color</api/data_types/color>`                                                 |                                  |        |
| `AddRowAt<webchartcirculardataset.addrowat>`           | Index As `Integer</api/data_types/integer>`, Value As `Double</api/data_types/double>`, ValueColor As `Color</api/data_types/color>`    |                                  |        |
| `ColorAt<webchartcirculardataset.colorat>`             | Index As `Integer</api/data_types/integer>`                                                                                             | `Color</api/data_types/color>`   |        |
| `Constructor<webchartcirculardataset.constructor0>`    | Label As `String</api/data_types/string>`, Datapoints() As `Double</api/data_types/double>`, Colors() As `Color</api/data_types/color>` |                                  |        |
| `RemoveAllRows<webchartcirculardataset.removeallrows>` |                                                                                                                                         |                                  |        |
| `RemoveRowAt<webchartcirculardataset.removerowat>`     | Index As `Integer</api/data_types/integer>`                                                                                             |                                  |        |
| `RowAt<webchartcirculardataset.rowat>`                 | Index As `Integer</api/data_types/integer>`                                                                                             | `Double</api/data_types/double>` |        |

## Property descriptions

<div id="webchartcirculardataset.fill">

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

</div>

<div class="rst-class">

forsearch

</div>

WebChartCircularDataset.Fill

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

If `True</api/language/true>`, the graphical object in the chart that represents the data will be filled in with a color.

<div id="webchartcirculardataset.label">

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

</div>

<div class="rst-class">

forsearch

</div>

WebChartCircularDataset.Label

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

The label that will appear in the chart with the graphics that represent the dataset.

<div id="webchartcirculardataset.tag">

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

</div>

<div class="rst-class">

forsearch

</div>

WebChartCircularDataset.Tag

**Tag** As `Variant</api/data_types/variant>`

A place to store data associated with the dataset.

## Method descriptions

<div id="webchartcirculardataset.addrow">

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

</div>

<div class="rst-class">

forsearch

</div>

WebChartCircularDataset.AddRow

**AddRow**(Value As `Double</api/data_types/double>`, ValueColor As `Color</api/data_types/color>`)

Adds a row with the value and color passed to the dataset.

<div id="webchartcirculardataset.addrowat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebChartCircularDataset.AddRowAt

**AddRowAt**(Index As `Integer</api/data_types/integer>`, Value As `Double</api/data_types/double>`, ValueColor As `Color</api/data_types/color>`)

Adds a row with the value and color passed to the dataset at the index passed.

<div id="webchartcirculardataset.colorat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebChartCircularDataset.ColorAt

**ColorAt**(Index As `Integer</api/data_types/integer>`) As `Color</api/data_types/color>`

Returns the `Color</api/data_types/color>` associated with the value in the dataset at the index passed.

<div id="webchartcirculardataset.constructor0">

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

</div>

<div class="rst-class">

forsearch

</div>

WebChartCircularDataset.Constructor

**Constructor**(Label As `String</api/data_types/string>`, Datapoints() As `Double</api/data_types/double>`, Colors() As `Color</api/data_types/color>`)

<div class="note">

<div class="title">

Note

</div>

`Constructors</api/language/constructor>` are special methods called when you create an object with the `New</api/language/new>` keyword and pass in the parameters above.

</div>

Creates a new dataset from the values passed.

<div id="webchartcirculardataset.removeallrows">

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

</div>

<div class="rst-class">

forsearch

</div>

WebChartCircularDataset.RemoveAllRows

**RemoveAllRows**

Removes all rows (data) from the dataset.

<div id="webchartcirculardataset.removerowat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebChartCircularDataset.RemoveRowAt

**RemoveRowAt**(Index As `Integer</api/data_types/integer>`)

Removes the row (data) at the index passed from the dataset.

<div id="webchartcirculardataset.rowat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebChartCircularDataset.RowAt

**RowAt**(Index As `Integer</api/data_types/integer>`) As `Double</api/data_types/double>`

Returns the value (row) at the index passed from the dataset.

## Sample code

This example adds the dataset to a `WebChart</api/user_interface/web/webchart>` control that has its type set to Doughnut:

``` xojo
Var sales() As Double = Array(345890.0, 421934, 456908, 567987)
Var colors() As Color = Array(Color.Red, Color.Green, Color.Yellow, Color.Blue)
Var ds As New WebChartCircularDataset("Sales", sales, Colors)
Me.AddDataset(ds)
Me.AddLabels("Q1", "Q2", "Q3", "Q4")
```

## Compatibility

Web projects on all supported operating systems.

## See also

`WebChartDataset</api/deprecated/webchartdataset>` parent class; `WebChartLinearDataset</api/deprecated/webchartlineardataset>` and `WebChartScatterDataset</api/deprecated/webchartscatterdataset>` classes.
