Class Global

    • Constructor Detail

      • Global

        public Global()
    • Method Detail

      • setVMLRadialGradientURL

        public void setVMLRadialGradientURL​(String VMLRadialGradientURL)
        Sets the path to the pattern image required by VML browsers in order to draw radial gradients.

        Defaults to "~./js/chart/ext/gfx/vml-radial-gradient.png"

        Parameters:
        VMLRadialGradientURL -
      • getVMLRadialGradientURL

        public String getVMLRadialGradientURL()
        Returns the path to the pattern image required by VML browsers in order to draw radial gradients.

        Defaults to "~./js/chart/ext/gfx/vml-radial-gradient.png"

      • setCanvasToolsURL

        public void setCanvasToolsURL​(String canvasToolsURL)
        Sets the URL to the additional file to lazy load for Android 2.x devices. These devices don't support SVG, so we download a helper file that contains canvg, its dependecy rbcolor, and our own CanVG Renderer class. To avoid hotlinking to our site, you can install canvas-tools.js on your own server and change this option accordingly.

        Defaults to ~./js/chart/ext/modules/canvas-tools.js

        Parameters:
        canvasToolsURL -
      • getCanvasToolsURL

        public String getCanvasToolsURL()
        Returns the URL to the additional file to lazy load for Android 2.x devices. These devices don't support SVG, so we download a helper file that contains canvg, its dependecy rbcolor, and our own CanVG Renderer class. To avoid hotlinking to our site, you can install canvas-tools.js on your own server and change this option accordingly.

        Defaults to "~./js/chart/ext/modules/canvas-tools.js"

      • setTimezoneOffset

        public void setTimezoneOffset​(Number timezoneOffset)
        Sets the timezone offset in minutes. Positive values are west, negative values are east of UTC, as in the ECMAScript getTimezoneOffset method. Use this to display UTC based data in a predefined time zone.

        Defaults to 0.

        Parameters:
        timezoneOffset -
      • getTimezoneOffset

        public Number getTimezoneOffset()
        Returns the timezone offset in minutes. Positive values are west, negative values are east of UTC, as in the ECMAScript getTimezoneOffset method. Use this to display UTC based data in a predefined time zone.

        Defaults to 0.

      • setUseUTC

        public void setUseUTC​(boolean useUTC)
        Sets whether to use UTC time for axis scaling, tickmark placement and time display in Charts.setDateFormat(String, Number, boolean). Advantages of using UTC is that the time displays equally regardless of the user agent's time zone settings. Local time can be used when the data is loaded in real time or when correct Daylight Saving Time transitions are required.

        Defaults to true.

        Parameters:
        useUTC -
      • isUseUTC

        public boolean isUseUTC()
        Returns whether to use UTC time for axis scaling, tickmark placement and time display in Charts.setDateFormat(String, Number, boolean). Advantages of using UTC is that the time displays equally regardless of the user agent's time zone settings. Local time can be used when the data is loaded in real time or when correct Daylight Saving Time transitions are required.

        Defaults to true.