Class
ChartCircularDataset
Description
A dataset that can be used with Doughnut, Pie, PolarArea and Radar chart types.
Properties
Name |
Type |
Read-Only |
Shared |
---|---|---|---|
Methods
Name |
Parameters |
Returns |
Shared |
---|---|---|---|
value As Double, valueColor As ColorGroup |
|||
index As Integer, value As Double, valueColor As ColorGroup |
|||
index As Integer |
|||
index As Integer, Assigns valueColor As ColorGroup |
|||
Label As String, DataPoints() As Double, Colors() As ColorGroup |
|||
Index As Integer |
|||
index As Integer |
|||
Property descriptions
ChartCircularDataset.AllowInteraction
AllowInteraction As Boolean
ChartCircularDataset.AllowPopover
AllowPopover As Boolean
ChartCircularDataset.DataColor
DataColor As ColorGroup
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.HasInlineLabels
HasInlineLabels As Boolean
If True, the labels are displayed near the data rather than only in the legend.
ChartCircularDataset.IsLegendVisible
IsLegendVisible As Boolean
ChartCircularDataset.IsVisible
IsVisible As Boolean
If True, the data will be drawn in the chart.
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.
ChartCircularDataset.Transparency
Transparency As Double
Controls the level of transparency of the data when drawn. 0 is fully opaque. 100 is fully transparent.
The default value is 50.
Method descriptions
ChartCircularDataset.AddRow
AddRow(value As Double, valueColor As Color)
AddRow(value As Double, valueColor As ColorGroup)
Adds a row with the value and color passed to the dataset.
ChartCircularDataset.AddRowAt
AddRowAt(index As Integer, value As Double, valueColor As Color)
AddRowAt(index As Integer, value As Double, valueColor As ColorGroup)
Adds a row with the value and color passed to the dataset at the index passed.
ChartCircularDataset.ColorAt
ColorAt(index As Integer) As ColorGroup
Returns the ColorGroup associated with the value in the dataset at the index passed.
ColorAt(index As Integer, Assigns valueColor As ColorGroup)
Sets the ColorGroup associated with the value in the dataset at the index passed.
ChartCircularDataset.Constructor
Constructor(Label As String, DataPoints() As Double, Colors() As Color)
Constructor(Label As String, DataPoints() As Double, Colors() As ColorGroup)
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
RowAt(index As Integer, Assigns value As Double)
Gets or sets the row value at the index passed.
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
Project Types |
Desktop, Mobile, Web |
Operating Systems |
iOS, Linux, macOS, Windows |
See also
ChartDataset parent class; ChartLinearDataset and ChartScatterDataset classes.