Class

ChartCircularDataset


Description

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

Properties

Name

Type

Read-Only

Shared

DataColor

Color

Fill

Boolean

Label

String

Tag

Variant

Methods

Name

Parameters

Returns

Shared

AddRow

Value As Double, ValueColor As Color

AddRowAt

Index As Integer, Value As Double, ValueColor As Color

ColorAt

Index As Integer

Color

Constructor

Label As String, Datapoints() As Double, Colors() As Color

Count

Integer

LastIndex

Integer

RemoveAllRows

RemoveRowAt

Index As Integer

RowAt

Index As Integer

Double

Property descriptions


ChartCircularDataset.DataColor

DataColor As Color

The color to be used when drawing the graphics in the chart that represent the dataset.


ChartCircularDataset.Fill

Fill As Boolean

If True, the graphical object in the chart that represents the data will be filled in with a color.


ChartCircularDataset.Label

Label As String

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


ChartCircularDataset.Tag

Tag As Variant

A place to store data associated with the dataset.

Method descriptions


ChartCircularDataset.AddRow

AddRow(Value As Double, ValueColor As Color)

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


ChartCircularDataset.AddRowAt

AddRowAt(Index As Integer, Value As Double, ValueColor As Color)

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


ChartCircularDataset.ColorAt

ColorAt(Index As Integer) As Color

Returns the Color associated with the value in the dataset at the index passed.


ChartCircularDataset.Constructor

Constructor(Label As String, Datapoints() As Double, Colors() As Color)

Note

Constructors are special methods called when you create an object with the New keyword and pass in the parameters above.

Creates a new dataset from the values passed.


ChartCircularDataset.Count

Count As Integer

Returns the number of the dataset.


ChartCircularDataset.LastIndex

LastIndex As Integer

Returns the last index of the dataset.


ChartCircularDataset.RemoveAllRows

RemoveAllRows

Removes all rows (data) from the dataset.


ChartCircularDataset.RemoveRowAt

RemoveRowAt(Index As Integer)

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


ChartCircularDataset.RowAt

RowAt(Index As Integer) As Double

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

Sample code

This example adds the dataset to any Chart (Desktop, Mobile or Web) control that has its type set to Doughnut:

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 ChartCircularDataset("Sales", sales, Colors)
Me.AddDataset(ds)
Me.AddLabels("Q1", "Q2", "Q3", "Q4")

Compatibility

Desktop, Mobile and Web projects on all supported operating systems.

See also

ChartDataset parent class; ChartLinearDataset and ChartScatterDataset classes.