Class Lang

  • All Implemented Interfaces:
    Serializable

    public class Lang
    extends AbstractConfigurationObject
    Language object. The language object is global and it can't be set on each chart initiation. Instead, use Highcharts.setOptions to set it before any chart is initiated.
     Highcharts.setOptions({
            lang: {
                    months: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin',  'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
                    weekdays: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi']
            }
     });
     
    See Also:
    Serialized Form
    • Constructor Detail

      • Lang

        public Lang()
    • Method Detail

      • setContextButtonTitle

        public void setContextButtonTitle​(String contextButtonTitle)
        Exporting module menu. The tooltip title for the context menu holding print and export menu items.

        Defaults to: Chart context menu

      • setDecimalPoint

        public void setDecimalPoint​(String decimalPoint)
        The default decimal point used in the Highcharts.numberFormat method unless otherwise specified in the function arguments.

        Defaults to: .

      • setDownloadJPEG

        public void setDownloadJPEG​(String downloadJPEG)
        Exporting module only. The text for the JPEG download menu item.

        Defaults to: Download JPEG image

      • setDownloadPDF

        public void setDownloadPDF​(String downloadPDF)
        Exporting module only. The text for the PDF download menu item.

        Defaults to: Download PDF document

      • setDownloadPNG

        public void setDownloadPNG​(String downloadPNG)
        Exporting module only. The text for the PNG download menu item.

        Defaults to: Download PNG image

      • setDownloadSVG

        public void setDownloadSVG​(String downloadSVG)
        Exporting module only. The text for the SVG download menu item.

        Defaults to: Download SVG vector image

      • setDrillUpText

        public void setDrillUpText​(String drillUpText)
        The text for the button that appears when drilling down, linking back to the parent series. The parent series' name is inserted for {series.name}.

        Defaults to: Back to {series.name}

      • setInvalidDate

        public void setInvalidDate​(String invalidDate)
        What to show in a date field for invalid dates. Defaults to an empty string.
      • setLoading

        public void setLoading​(String loading)
        The loading text that appears when the chart is set into the loading state following a call to chart.showLoading.

        Defaults to: Loading...

      • setMonths

        public void setMonths​(String[] months)
        An array containing the months names. Corresponds to the %B format in Highcharts.dateFormat().

        Defaults to: [ "January" , "February" , "March" , "April" , "May" , "June" , "July" , "August" , "September" , "October" , "November" , "December"]

      • setNoData

        public void setNoData​(String noData)
        The text to display when the chart contains no data. Requires the no-data module, see noData.

        Defaults to: No data to display

      • setNumericSymbolMagnitude

        public void setNumericSymbolMagnitude​(Number numericSymbolMagnitude)
        The magnitude of numericSymbols replacements. Use 10000 for Japanese, Korean and various Chinese locales, which use symbols for 10^4, 10^8 and 10^12.

        Defaults to: 1000

      • setNumericSymbols

        public void setNumericSymbols​(String[] numericSymbols)
        Metric prefixes used to shorten high numbers in axis labels. Setting numericSymbols to null sets default values. Setting numericSymbols to an empty array disables shortening - shows initial numbers.

        Defaults to: [ "k" , "M" , "G" , "T" , "P" , "E"]

      • setPrintChart

        public void setPrintChart​(String printChart)
        Exporting module only. The text for the menu item to print the chart.

        Defaults to: Print chart

      • setResetZoom

        public void setResetZoom​(String resetZoom)
        The text for the label appearing when a chart is zoomed.

        Defaults to: Reset zoom

      • setResetZoomTitle

        public void setResetZoomTitle​(String resetZoomTitle)
        The tooltip title for the label appearing when a chart is zoomed.

        Defaults to: Reset zoom level 1:1

      • setShortMonths

        public void setShortMonths​(String[] shortMonths)
        An array containing the months names in abbreviated form. Corresponds to the %b format in Highcharts.dateFormat().

        Defaults to: [ "Jan" , "Feb" , "Mar" , "Apr" , "May" , "Jun" , "Jul" , "Aug" , "Sep" , "Oct" , "Nov" , "Dec"]

      • setShortWeekdays

        public void setShortWeekdays​(String[] shortWeekdays)
        Short week days, starting Sunday. If not specified, Highcharts uses the first three letters of the lang.weekdays option.
      • setThousandsSep

        public void setThousandsSep​(String thousandsSep)

        The default thousands separator used in the Highcharts.numberFormat method unless otherwise specified in the function arguments. Since Highcharts 4.1 it defaults to a single space character, which is compatible with ISO and works across Anglo-American and continental European languages.

        The default is a single space.

        Defaults to:

      • setWeekdays

        public void setWeekdays​(String[] weekdays)
        An array containing the weekday names.

        Defaults to: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]

      • setRangeSelectorFrom

        public void setRangeSelectorFrom​(String rangeSelectorFrom)
        The text for the label for the "from" input box in the range selector.

        Defaults to: From

      • setRangeSelectorTo

        public void setRangeSelectorTo​(String rangeSelectorTo)
        The text for the label for the "to" input box in the range selector.

        Defaults to: To

      • setRangeSelectorZoom

        public void setRangeSelectorZoom​(String rangeSelectorZoom)
        The text for the label for the range selector buttons.

        Defaults to: Zoom