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

From Xojo Documentation

Revision as of 15:04, 2 June 2020 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Constructor

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

New in 2020r1

Creates a new WebChartLinearDataset from the values passed.

Sample Code

This examples uses the constructor to create a new dataset and then assign it to the chart:

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

See Also

Color data type.