Class Accessibility
- All Implemented Interfaces:
Serializable
Options for configuring accessibility for the chart. Requires the accessibility module to be loaded. For a description of the module and information on its features, see Highcharts Accessibility.
- Since:
- 6.0.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDescribeSingleSeries(Boolean describeSingleSeries) Whether or not to add series descriptions to charts with a single series.voidsetEnabled(Boolean enabled) Enable accessibility features for the chart.voidsetKeyboardNavigation(KeyboardNavigation keyboardNavigation) Options for keyboard navigation.voidsetOnTableAnchorClick(String _fn_onTableAnchorClick) Sets the JavaScript function of theonTableAnchorClickoption, as the source code of the function.voidsetPointDateFormat(String pointDateFormat) Date format to use for points on datetime axes when describing them to screen reader users.voidsetPointDateFormatter(String _fn_pointDateFormatter) Sets the JavaScript function of thepointDateFormatteroption, as the source code of the function.voidsetPointDescriptionFormatter(String _fn_pointDescriptionFormatter) Sets the JavaScript function of thepointDescriptionFormatteroption, as the source code of the function.voidsetScreenReaderSectionFormatter(String _fn_screenReaderSectionFormatter) Sets the JavaScript function of thescreenReaderSectionFormatteroption, as the source code of the function.voidsetSeriesDescriptionFormatter(String _fn_seriesDescriptionFormatter) Sets the JavaScript function of theseriesDescriptionFormatteroption, as the source code of the function.
-
Constructor Details
-
Accessibility
public Accessibility() -
Accessibility
-
-
Method Details
-
getDescribeSingleSeries
- See Also:
-
setDescribeSingleSeries
Whether or not to add series descriptions to charts with a single series.Defaults to: false
-
getEnabled
- See Also:
-
setEnabled
Enable accessibility features for the chart.Defaults to: true
-
getOnTableAnchorClick
-
setOnTableAnchorClick
Sets the JavaScript function of theonTableAnchorClickoption, as the source code of the function.The browser compiles the function from this string, which a Content Security Policy without
unsafe-evalblocks: in the strict CSP mode, sending a chart configuration that has a function throws aCspViolationException.- Parameters:
_fn_onTableAnchorClick- the source code of the JavaScript function
-
getPointDateFormat
- See Also:
-
setPointDateFormat
Date format to use for points on datetime axes when describing them to screen reader users.
Defaults to the same format as in tooltip.
For an overview of the replacement codes, see dateFormat.
-
getPointDateFormatter
-
setPointDateFormatter
Sets the JavaScript function of thepointDateFormatteroption, as the source code of the function.The browser compiles the function from this string, which a Content Security Policy without
unsafe-evalblocks: in the strict CSP mode, sending a chart configuration that has a function throws aCspViolationException. Where a format string is enough, usesetPointDateFormat(String), which needs no JavaScript.- Parameters:
_fn_pointDateFormatter- the source code of the JavaScript function
-
getPointDescriptionFormatter
-
setPointDescriptionFormatter
Sets the JavaScript function of thepointDescriptionFormatteroption, as the source code of the function.The browser compiles the function from this string, which a Content Security Policy without
unsafe-evalblocks: in the strict CSP mode, sending a chart configuration that has a function throws aCspViolationException.- Parameters:
_fn_pointDescriptionFormatter- the source code of the JavaScript function
-
getScreenReaderSectionFormatter
-
setScreenReaderSectionFormatter
Sets the JavaScript function of thescreenReaderSectionFormatteroption, as the source code of the function.The browser compiles the function from this string, which a Content Security Policy without
unsafe-evalblocks: in the strict CSP mode, sending a chart configuration that has a function throws aCspViolationException.- Parameters:
_fn_screenReaderSectionFormatter- the source code of the JavaScript function
-
getSeriesDescriptionFormatter
-
setSeriesDescriptionFormatter
Sets the JavaScript function of theseriesDescriptionFormatteroption, as the source code of the function.The browser compiles the function from this string, which a Content Security Policy without
unsafe-evalblocks: in the strict CSP mode, sending a chart configuration that has a function throws aCspViolationException.- Parameters:
_fn_seriesDescriptionFormatter- the source code of the JavaScript function
-