AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.format.Context Improve this Doc

The Context class contains methods to show some information from extra fields in the format function context.

Methods Overview

Data
getData()Get data value.
getMeta()Gets meta value.
getStat()Gets statistics value by key.

Methods Description

getData

Gets data value by the single parameter.

Params:

NameTypeDescription
fieldPath*Field path.

Returns:

* - Data value.
Gets data value by several parameters.
This method uses several parameters only in the Gantt Resource, TreeMap and Pert charts.

Params:

NameTypeDescription
var_args*Data field path.

Returns:

* - Data value.

getMeta

Gets meta value.

Params:

NameTypeDescription
namestringData field path.

Returns:

* - Meta value.

getStat

Gets statistics value by key.

Params:

NameTypeDescription
keystringKey.

Returns:

* - Statistics value.