AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated v7 version of this document. Switch to the v8 version to see the up to date information.

class anychart.core.utils.ChartA11y Improve this Doc

Extends: anychart.core.utils.A11y

Anychart chart accessibility class.

Methods Overview

Specific settings
enabled()Accessibility state.
mode()Accessibility mode.
titleFormat()Function to format title text.

Methods Description

enabled

Getter for the accessibility enabled state (enabled or disabled).

Returns:

boolean - The accessibility state.
Setter for the accessibility enabled state.

Params:

NameTypeDefaultDescription
valueboolean
true
Value to set.

Returns:

anychart.core.utils.ChartA11y - Self instance for method chaining.

mode

Getter for the accessibility mode.

Returns:

anychart.enums.A11yMode - The accessibility mode.
Setter for the accessibility mode.

Params:

NameTypeDefaultDescription
valueanychart.enums.A11yMode | string
"chartElements"
Value to set.

Returns:

anychart.core.utils.ChartA11y - Self instance for method chaining.

titleFormat

Getter for the function to format title.

Returns:

function | string - Function to format title text.
See listing.
var accessibility = chart.a11y();
var titleFormat = accessibility.titleFormat();
Setter for the function to format title.
Learn more about using titleFormat() method.

Params:

NameTypeDescription
valuefunction | stringFunction or token to format content text.

Returns:

anychart.core.utils.ChartA11y - Self instance for method chaining.