Class Accessibility

java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.Accessibility
All Implemented Interfaces:
Serializable

public class Accessibility extends AbstractConfigurationObject

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 Details

    • Accessibility

      public Accessibility()
    • Accessibility

      public Accessibility(Boolean enabled)
  • Method Details

    • getDescribeSingleSeries

      public Boolean getDescribeSingleSeries()
      See Also:
    • setDescribeSingleSeries

      public void setDescribeSingleSeries(Boolean describeSingleSeries)
      Whether or not to add series descriptions to charts with a single series.

      Defaults to: false

    • getEnabled

      public Boolean getEnabled()
      See Also:
    • setEnabled

      public void setEnabled(Boolean enabled)
      Enable accessibility features for the chart.

      Defaults to: true

    • getKeyboardNavigation

      public KeyboardNavigation getKeyboardNavigation()
      See Also:
    • setKeyboardNavigation

      public void setKeyboardNavigation(KeyboardNavigation keyboardNavigation)
      Options for keyboard navigation.
    • getOnTableAnchorClick

      public String getOnTableAnchorClick()
    • setOnTableAnchorClick

      public void setOnTableAnchorClick(String _fn_onTableAnchorClick)
      Sets the JavaScript function of the onTableAnchorClick option, as the source code of the function.

      The browser compiles the function from this string, which a Content Security Policy without unsafe-eval blocks: in the strict CSP mode, sending a chart configuration that has a function throws a CspViolationException.

      Parameters:
      _fn_onTableAnchorClick - the source code of the JavaScript function
    • getPointDateFormat

      public String getPointDateFormat()
      See Also:
    • setPointDateFormat

      public void setPointDateFormat(String pointDateFormat)

      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

      public String getPointDateFormatter()
    • setPointDateFormatter

      public void setPointDateFormatter(String _fn_pointDateFormatter)
      Sets the JavaScript function of the pointDateFormatter option, as the source code of the function.

      The browser compiles the function from this string, which a Content Security Policy without unsafe-eval blocks: in the strict CSP mode, sending a chart configuration that has a function throws a CspViolationException. Where a format string is enough, use setPointDateFormat(String), which needs no JavaScript.

      Parameters:
      _fn_pointDateFormatter - the source code of the JavaScript function
    • getPointDescriptionFormatter

      public String getPointDescriptionFormatter()
    • setPointDescriptionFormatter

      public void setPointDescriptionFormatter(String _fn_pointDescriptionFormatter)
      Sets the JavaScript function of the pointDescriptionFormatter option, as the source code of the function.

      The browser compiles the function from this string, which a Content Security Policy without unsafe-eval blocks: in the strict CSP mode, sending a chart configuration that has a function throws a CspViolationException.

      Parameters:
      _fn_pointDescriptionFormatter - the source code of the JavaScript function
    • getScreenReaderSectionFormatter

      public String getScreenReaderSectionFormatter()
    • setScreenReaderSectionFormatter

      public void setScreenReaderSectionFormatter(String _fn_screenReaderSectionFormatter)
      Sets the JavaScript function of the screenReaderSectionFormatter option, as the source code of the function.

      The browser compiles the function from this string, which a Content Security Policy without unsafe-eval blocks: in the strict CSP mode, sending a chart configuration that has a function throws a CspViolationException.

      Parameters:
      _fn_screenReaderSectionFormatter - the source code of the JavaScript function
    • getSeriesDescriptionFormatter

      public String getSeriesDescriptionFormatter()
    • setSeriesDescriptionFormatter

      public void setSeriesDescriptionFormatter(String _fn_seriesDescriptionFormatter)
      Sets the JavaScript function of the seriesDescriptionFormatter option, as the source code of the function.

      The browser compiles the function from this string, which a Content Security Policy without unsafe-eval blocks: in the strict CSP mode, sending a chart configuration that has a function throws a CspViolationException.

      Parameters:
      _fn_seriesDescriptionFormatter - the source code of the JavaScript function