Class AxisAccessibility

  • All Implemented Interfaces:
    Serializable, OptionDataListener, org.zkoss.json.JSONAware

    public class AxisAccessibility
    extends Optionable
    Accessibility options for an axis.

    Requires the accessibility module to be loaded. For example,

    
     Library.setProperty("org.zkoss.chart.modules.accessibility", "true");
     
    Since:
    10.2.1.0
    Author:
    jumperchen
    See Also:
    Serialized Form
    • Constructor Detail

      • AxisAccessibility

        public AxisAccessibility()
    • Method Detail

      • getDescription

        public String getDescription()
        Returns the description for an axis to expose to screen reader users.

        Default: null

      • setDescription

        public void setDescription​(String description)
        Sets the description for an axis to expose to screen reader users.

        Default: null

      • isEnabled

        public Boolean isEnabled()
        Returns whether to enable axis accessibility features, including axis information in the screen reader information region. If this is disabled on the xAxis, the x values are not exposed to screen readers for the individual data points by default.

        Default: null

      • setEnabled

        public void setEnabled​(boolean enabled)
        Sets whether to enable axis accessibility features, including axis information in the screen reader information region. If this is disabled on the xAxis, the x values are not exposed to screen readers for the individual data points by default.
      • getRangeDescription

        public String getRangeDescription()
        Returns the range description for an axis. Overrides the default range description. Set to empty to disable range description for this axis.

        Default: null

      • setRangeDescription

        public void setRangeDescription​(String rangeDescription)
        Sets the range description for an axis. Overrides the default range description. Set to empty to disable range description for this axis.

        Default: null