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.voidsetOnTableAnchorClickFunction(ChartFunction onTableAnchorClick) Sets the function of theonTableAnchorClickoption, declared in aJsDefinitioninterface.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.voidsetPointDateFormatterFunction(ChartFunction pointDateFormatter) Sets the function of thepointDateFormatteroption, declared in aJsDefinitioninterface.voidsetPointDescriptionFormatter(String _fn_pointDescriptionFormatter) Sets the JavaScript function of thepointDescriptionFormatteroption, as the source code of the function.voidsetPointDescriptionFormatterFunction(ChartFunction pointDescriptionFormatter) Sets the function of thepointDescriptionFormatteroption, declared in aJsDefinitioninterface.voidsetScreenReaderSectionFormatter(String _fn_screenReaderSectionFormatter) Sets the JavaScript function of thescreenReaderSectionFormatteroption, as the source code of the function.voidsetScreenReaderSectionFormatterFunction(ChartFunction screenReaderSectionFormatter) Sets the function of thescreenReaderSectionFormatteroption, declared in aJsDefinitioninterface.voidsetSeriesDescriptionFormatter(String _fn_seriesDescriptionFormatter) Sets the JavaScript function of theseriesDescriptionFormatteroption, as the source code of the function.voidsetSeriesDescriptionFormatterFunction(ChartFunction seriesDescriptionFormatter) Sets the function of theseriesDescriptionFormatteroption, declared in aJsDefinitioninterface.
-
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 aContentSecurityPolicyViolationException.Setting a function this way clears a function set with
setOnTableAnchorClickFunction(ChartFunction), which works without compiling JavaScript in the browser.- Parameters:
_fn_onTableAnchorClick- the source code of the JavaScript function
-
getOnTableAnchorClickFunction
- See Also:
-
setOnTableAnchorClickFunction
Sets the function of theonTableAnchorClickoption, declared in aJsDefinitioninterface. The browser runs the function from the frontend bundle, so it works under a Content Security Policy withoutunsafe-eval.Setting a function this way clears a function set with
setOnTableAnchorClick(String).A chart exported to SVG with
SVGGeneratordoes not have the function. Neither does a chart state saved or restored withChartAiController.- Parameters:
onTableAnchorClick- the function, ornullto remove it- Since:
- 25.4
-
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 aContentSecurityPolicyViolationException. Where a format string is enough, usesetPointDateFormat(String), which needs no JavaScript.Setting a function this way clears a function set with
setPointDateFormatterFunction(ChartFunction), which works without compiling JavaScript in the browser.- Parameters:
_fn_pointDateFormatter- the source code of the JavaScript function
-
getPointDateFormatterFunction
- See Also:
-
setPointDateFormatterFunction
Sets the function of thepointDateFormatteroption, declared in aJsDefinitioninterface. The browser runs the function from the frontend bundle, so it works under a Content Security Policy withoutunsafe-eval.Setting a function this way clears a function set with
setPointDateFormatter(String).A chart exported to SVG with
SVGGeneratordoes not have the function. Neither does a chart state saved or restored withChartAiController.- Parameters:
pointDateFormatter- the function, ornullto remove it- Since:
- 25.4
-
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 aContentSecurityPolicyViolationException.Setting a function this way clears a function set with
setPointDescriptionFormatterFunction(ChartFunction), which works without compiling JavaScript in the browser.- Parameters:
_fn_pointDescriptionFormatter- the source code of the JavaScript function
-
getPointDescriptionFormatterFunction
- See Also:
-
setPointDescriptionFormatterFunction
Sets the function of thepointDescriptionFormatteroption, declared in aJsDefinitioninterface. The browser runs the function from the frontend bundle, so it works under a Content Security Policy withoutunsafe-eval.Setting a function this way clears a function set with
setPointDescriptionFormatter(String).A chart exported to SVG with
SVGGeneratordoes not have the function. Neither does a chart state saved or restored withChartAiController.- Parameters:
pointDescriptionFormatter- the function, ornullto remove it- Since:
- 25.4
-
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 aContentSecurityPolicyViolationException.Setting a function this way clears a function set with
setScreenReaderSectionFormatterFunction(ChartFunction), which works without compiling JavaScript in the browser.- Parameters:
_fn_screenReaderSectionFormatter- the source code of the JavaScript function
-
getScreenReaderSectionFormatterFunction
- See Also:
-
setScreenReaderSectionFormatterFunction
Sets the function of thescreenReaderSectionFormatteroption, declared in aJsDefinitioninterface. The browser runs the function from the frontend bundle, so it works under a Content Security Policy withoutunsafe-eval.Setting a function this way clears a function set with
setScreenReaderSectionFormatter(String).A chart exported to SVG with
SVGGeneratordoes not have the function. Neither does a chart state saved or restored withChartAiController.- Parameters:
screenReaderSectionFormatter- the function, ornullto remove it- Since:
- 25.4
-
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 aContentSecurityPolicyViolationException.Setting a function this way clears a function set with
setSeriesDescriptionFormatterFunction(ChartFunction), which works without compiling JavaScript in the browser.- Parameters:
_fn_seriesDescriptionFormatter- the source code of the JavaScript function
-
getSeriesDescriptionFormatterFunction
- See Also:
-
setSeriesDescriptionFormatterFunction
Sets the function of theseriesDescriptionFormatteroption, declared in aJsDefinitioninterface. The browser runs the function from the frontend bundle, so it works under a Content Security Policy withoutunsafe-eval.Setting a function this way clears a function set with
setSeriesDescriptionFormatter(String).A chart exported to SVG with
SVGGeneratordoes not have the function. Neither does a chart state saved or restored withChartAiController.- Parameters:
seriesDescriptionFormatter- the function, ornullto remove it- Since:
- 25.4
-