Skip to content
Thomas Möller edited this page Feb 12, 2022 · 7 revisions

Class name

Data

Purpose / Description

This class holds the data in a format optimized for chart.js.

Methods

Properties

  • none

Detailed description

The following sections contain a detailed description of the methods and properties.

AddData

Description:

This method adds a series of values to the named dataset

Parameters

  • TheDataset :: Name of the dataset, if no dataset with this name is available, one will be created
  • TheData :: string with data values in the format of the defined chart type

Sample code:

myChart.Chart.Data.AddData "MyDemoData", "1,2,3,4,5,6"

Related to:

--

AddDatasetName

Description:

This method initializes and names a new dataset.

Parameters

  • TheDatasetName

Sample code:

myChart.Data.AddDatasetName "DemoData"

Related to:

--

AddLabel

Description:

This method adds a single label.

Parameters

  • TheLabel

Sample code:

myChart.Chart.Data.AddLabel "Demo"

Related to:

--

AddLabels

Description:

This method adds a list of labels.

Parameters

  • TheLabels :: array or comma separated list

Sample code:

myChart.Chart.Data.AddLabels "Jan,Feb"

Related to:

--