Top
You are looking at an outdated 7.9.0 version of this document. Switch to the 7.14.3 version to see the up to date information.

class anychart.core.utils.LegendContextProvider Improve this Doc

Context provider for legend's itemsTextFormatter function.

Methods Overview

Specific settings
getMeta()Gets meta by key.
getStat()Gets statistics value by key.
Data
getTokenValue()Returns token value by token name.
Miscellaneous
getTokenType()Returns token type by token name.

Methods Description

getMeta

Gets meta by key.

Params:

Name Type Description
key string Key.

Returns:

* - Meta value by key, or meta object.

Try it:

getStat

Gets statistics value by key.

Params:

Name Type Description
key string Key.

Returns:

* - Value by key.

Try it:

getTokenType

Returns token type by token name.

Params:

Name Type Description
name string Token name.

Returns:

anychart.enums.TokenType - Type of the token.

Try it:

getTokenValue

Returns token value by token name.

Params:

Name Type Description
name string Token name.

Returns:

* - Value of the token.

Try it: