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:

Name Type Description
fieldPath * Field path.

Returns:

* - Data value.

Try it:

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

Params:

Name Type Description
var_args * Data field path.

Returns:

* - Data value.

getMeta

Gets meta value.

Params:

Name Type Description
name string Data field path.

Returns:

* - Meta value.

Try it:

getStat

Gets statistics value by key.

Params:

Name Type Description
key string Key.

Returns:

* - Statistics value.

Try it: