Class LegendNavigation

    • Constructor Detail

      • LegendNavigation

        public LegendNavigation()
      • LegendNavigation

        public LegendNavigation​(Boolean enabled)
    • Method Detail

      • setActiveColor

        public void setActiveColor​(Color activeColor)
        The color for the active up or down arrow in the legend page navigation.

        Defaults to: #003399

      • setAnimation

        public void setAnimation​(Boolean animation)
        How to animate the pages when navigating up or down. A value of true applies the default navigation given in the chart.animation option. Additional options can be given as an object containing values for easing and duration. .

        Defaults to: true

      • setArrowSize

        public void setArrowSize​(Number arrowSize)
        The pixel size of the up and down arrows in the legend paging navigation. .

        Defaults to: 12

      • setEnabled

        public void setEnabled​(Boolean enabled)

        Whether to enable the legend navigation. In most cases, disabling the navigation results in an unwanted overflow.

        See also the adapt chart to legend plugin for a solution to extend the chart height to make room for the legend, optionally in exported charts only.

        Defaults to: true

      • setInactiveColor

        public void setInactiveColor​(Color inactiveColor)
        The color of the inactive up or down arrow in the legend page navigation. .

        Defaults to: #cccccc

      • setStyle

        public void setStyle​(Style style)
        Text styles for the legend page navigation.