GLG Toolkit, JavaScript Library  Version 4.6
GlgDataSample Class Reference

Data sample object that holds data for one point of a chart. More...

Detailed Description

Data sample object that holds data for one point of a chart.

Data samples are not created directly. A chart creates and uses them when data are supplied via the chart's entry point.

Data sample nodes containing data samples can also be added to a chart plot via AddPlotDataSample to prefill the chart with data.

The GetSampleData function can be used to get the data sample's properties in advanced usage scenarios.

Static Public Member Functions

static double GetSampleData (GlgDataSample sample, GlgSampleQueryType type)
 Returns data stored in the data sample based on the requested data type. More...
 

Member Function Documentation

◆ GetSampleData()

static double GetSampleData ( GlgDataSample  sample,
GlgSampleQueryType  type 
)
static

Returns data stored in the data sample based on the requested data type.

Parameters
sampleThe data sample object to query.
typeSpecifies the data sample propery to query.
Returns
The value of the requested data sample property.