WebChartLinearDataset

From Xojo Documentation

Class (inherits from WebChartDataset)


New in 2020r1

The dataset used for charts that require linear data such as Bar, Line and Pie.

Properties
ChartType Fill Tag
DataColor Label
Methods
AddRow RemoveAllRows RowAt
AddRowAt RemoveRowAt
Enumerations
ChartTypes
Constructors

Constructor(Label As String, DataColor As Color, Fill As Boolean, Paramarray Datapoints() As Double)


Sample Code

This example uses a WebChartLinearDataset to present some data in a bar chart. Because WebChartLinearDataset requires the data to be of type Double, when using the Array function you must add a decimal to one of the values so that Array knows to return a Double rather than an Integer array.

Var sales() As Double = Array(345890.0, 421934, 456908, 567987)
Var ds As New WebChartLinearDataset("Sales", Color.Blue, True, sales)
Me.AddDataset(ds)
Me.AddLabels("Q1", "Q2", "Q3", "Q4")

Compatibility

Web projects on all supported operating systems.

See Also

WebChart control, WebChartDataset, WebChartCircularDataset and WebChartScatterDataset classes.