Class

WebChartCircularDataset


Warning

This class was deprecated in version 2023r1. Please use ChartCircularDataset as a replacement.

Description

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

Properties

Name

Type

Read-Only

Shared

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

RemoveAllRows

RemoveRowAt

Index As Integer

RowAt

Index As Integer

Double

Property descriptions


WebChartCircularDataset.Fill

Fill As Boolean

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


WebChartCircularDataset.Label

Label As String

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


WebChartCircularDataset.Tag

Tag As Variant

A place to store data associated with the dataset.

Method descriptions


WebChartCircularDataset.AddRow

AddRow(Value As Double, ValueColor As Color)

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


WebChartCircularDataset.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.


WebChartCircularDataset.ColorAt

ColorAt(Index As Integer) As Color

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


WebChartCircularDataset.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.


WebChartCircularDataset.RemoveAllRows

RemoveAllRows

Removes all rows (data) from the dataset.


WebChartCircularDataset.RemoveRowAt

RemoveRowAt(Index As Integer)

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


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

Compatibility

Web projects on all supported operating systems.

See also

WebChartDataset parent class; WebChartLinearDataset and WebChartScatterDataset classes.