You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.charts.

Class ChartOptions

    • Constructor Detail

      • ChartOptions

        protected ChartOptions()
    • Method Detail

      • setLang

        public void setLang​(Lang lang)

        Changes the language of all charts.

        Parameters:

        lang -

      • getLang

        public Lang getLang()

        Returns the Lang in use or null if no lang configuration has been set.

        Returns:

        the Lang in use or null.

      • getTheme

        public Theme getTheme()

        Returns the Theme in use or null if no theme has been set.

        Returns:

        the Theme in use or null.

      • setTheme

        public void setTheme​(Theme theme)

        Sets the theme to use.

        Note that if the view is already drawn, all existing Charts will be redrawn.

        Parameters:

        theme -

      • get

        public static ChartOptions get​(UI ui)

        Returns a ChartOptions instance for the given UI. If a ChartOptions extension has not yet been added, a new one is created and added.

        Parameters:

        ui - the UI for which the ChartOptions should be returned, not null

        Returns:

        the ChartOptions instance connected to the given UI

      • get

        public static ChartOptions get()

        Returns a ChartOptions instance for the current UI. If a ChartOptions extension has not yet been added, a new one is created and added.

        Returns:

        a ChartOptions instance connected to the currently active UI