Class Lang
- All Implemented Interfaces:
Serializable
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']
}
});
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldcontextButtonTitle.Getter for the fielddecimalPoint.Getter for the fielddownloadJPEG.Getter for the fielddownloadPDF.Getter for the fielddownloadPNG.Getter for the fielddownloadSVG.Getter for the fielddrillUpText.Getter for the fieldloading.String[]Getter for the fieldmonths.String[]Getter for the fieldnumericSymbols.Getter for the fieldprintChart.Getter for the fieldresetZoom.Getter for the fieldresetZoomTitle.String[]Getter for the fieldshortMonths.String[]Getter for the fieldshortWeekdays.Getter for the fieldthousandsSep.String[]Getter for the fieldweekdays.Getter for the fieldzoomIn.Getter for the fieldzoomOut.voidsetContextButtonTitle(String contextButtonTitle) Exporting module menu.voidsetDecimalPoint(String decimalPoint) The default decimal point used in theHighcharts.numberFormatmethod unless otherwise specified in the function arguments.voidsetDownloadJPEG(String downloadJPEG) Exporting module only.voidsetDownloadPDF(String downloadPDF) Exporting module only.voidsetDownloadPNG(String downloadPNG) Exporting module only.voidsetDownloadSVG(String downloadSVG) Exporting module only.voidsetDrillUpText(String drillUpText) The text for the button that appears when drilling down, linking back to the parent series.voidsetLoading(String loading) The loading text that appears when the chart is set into the loading state following a call tochart.showLoading.voidAn array containing the months names.voidsetNumericSymbols(String[] numericSymbols) Metric prefixes used to shorten high numbers in axis labels.voidsetPrintChart(String printChart) Exporting module only.voidsetResetZoom(String resetZoom) The text for the label appearing when a chart is zoomed.voidsetResetZoomTitle(String resetZoomTitle) The tooltip title for the label appearing when a chart is zoomed.voidsetShortMonths(String[] shortMonths) An array containing the months names in abbreviated form.voidsetShortWeekdays(String[] shortWeekdays) Short week days, starting Sunday.voidsetThousandsSep(String thousandsSep) The default thousands separator used in theHighcharts.numberFormatmethod unless otherwise specified in the function arguments.voidsetWeekdays(String[] weekdays) An array containing the weekday names.voidThe title appearing on hovering the zoom in button.voidsetZoomOut(ZoomOut zoomOut) The title appearing on hovering the zoom out button.
-
Constructor Details
-
Lang
public Lang()Constructor for Lang.
-
-
Method Details
-
getContextButtonTitle
Getter for the field
contextButtonTitle.- Returns:
- a
Stringobject. - See Also:
-
setContextButtonTitle
Exporting module menu. The tooltip title for the context menu holding print and export menu items.Defaults to: Chart context menu
- Parameters:
contextButtonTitle- aStringobject.
-
getDecimalPoint
Getter for the field
decimalPoint.- Returns:
- a
Stringobject. - See Also:
-
setDecimalPoint
The default decimal point used in theHighcharts.numberFormatmethod unless otherwise specified in the function arguments.Defaults to: .
- Parameters:
decimalPoint- aStringobject.
-
getDownloadJPEG
Getter for the field
downloadJPEG.- Returns:
- a
Stringobject. - See Also:
-
setDownloadJPEG
Exporting module only. The text for the JPEG download menu item.Defaults to: Download JPEG image
- Parameters:
downloadJPEG- aStringobject.
-
getDownloadPDF
Getter for the field
downloadPDF.- Returns:
- a
Stringobject. - See Also:
-
setDownloadPDF
Exporting module only. The text for the PDF download menu item.Defaults to: Download PDF document
- Parameters:
downloadPDF- aStringobject.
-
getDownloadPNG
Getter for the field
downloadPNG.- Returns:
- a
Stringobject. - See Also:
-
setDownloadPNG
Exporting module only. The text for the PNG download menu item.Defaults to: Download PNG image
- Parameters:
downloadPNG- aStringobject.
-
getDownloadSVG
Getter for the field
downloadSVG.- Returns:
- a
Stringobject. - See Also:
-
setDownloadSVG
Exporting module only. The text for the SVG download menu item.Defaults to: Download SVG vector image
- Parameters:
downloadSVG- aStringobject.
-
getDrillUpText
Getter for the field
drillUpText.- Returns:
- a
Stringobject. - See Also:
-
setDrillUpText
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}
- Parameters:
drillUpText- aStringobject.
-
getLoading
Getter for the field
loading.- Returns:
- a
Stringobject. - See Also:
-
setLoading
The loading text that appears when the chart is set into the loading state following a call tochart.showLoading.Defaults to: Loading...
- Parameters:
loading- aStringobject.
-
getMonths
Getter for the field
months.- Returns:
- an array of
Stringobjects. - See Also:
-
setMonths
An array containing the months names. Corresponds to the%Bformat inHighcharts.dateFormat().Defaults to: [ "January" , "February" , "March" , "April" , "May" , "June" , "July" , "August" , "September" , "October" , "November" , "December"]
- Parameters:
months- an array ofStringobjects.
-
getNumericSymbols
Getter for the field
numericSymbols.- Returns:
- an array of
Stringobjects. - See Also:
-
setNumericSymbols
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"]
- Parameters:
numericSymbols- an array ofStringobjects.
-
getPrintChart
Getter for the field
printChart.- Returns:
- a
Stringobject. - See Also:
-
setPrintChart
Exporting module only. The text for the menu item to print the chart.Defaults to: Print chart
- Parameters:
printChart- aStringobject.
-
getResetZoom
Getter for the field
resetZoom.- Returns:
- a
Stringobject. - See Also:
-
setResetZoom
The text for the label appearing when a chart is zoomed.Defaults to: Reset zoom
- Parameters:
resetZoom- aStringobject.
-
getResetZoomTitle
Getter for the field
resetZoomTitle.- Returns:
- a
Stringobject. - See Also:
-
setResetZoomTitle
The tooltip title for the label appearing when a chart is zoomed.Defaults to: Reset zoom level 1:1
- Parameters:
resetZoomTitle- aStringobject.
-
getShortMonths
Getter for the field
shortMonths.- Returns:
- an array of
Stringobjects. - See Also:
-
setShortMonths
An array containing the months names in abbreviated form. Corresponds to the%bformat inHighcharts.dateFormat().Defaults to: [ "Jan" , "Feb" , "Mar" , "Apr" , "May" , "Jun" , "Jul" , "Aug" , "Sep" , "Oct" , "Nov" , "Dec"]
- Parameters:
shortMonths- an array ofStringobjects.
-
getShortWeekdays
Getter for the field
shortWeekdays.- Returns:
- an array of
Stringobjects. - See Also:
-
setShortWeekdays
Short week days, starting Sunday. If not specified, Highcharts uses the first three letters of thelang.weekdaysoption.- Parameters:
shortWeekdays- an array ofStringobjects.
-
getThousandsSep
Getter for the field
thousandsSep.- Returns:
- a
Stringobject. - See Also:
-
setThousandsSep
The default thousands separator used in theHighcharts.numberFormatmethod 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.Defaults to:
- Parameters:
thousandsSep- aStringobject.
-
getWeekdays
Getter for the field
weekdays.- Returns:
- an array of
Stringobjects. - See Also:
-
setWeekdays
An array containing the weekday names.Defaults to: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
- Parameters:
weekdays- an array ofStringobjects.
-
getZoomIn
Getter for the field
zoomIn.- Returns:
- a
ZoomInobject. - See Also:
-
setZoomIn
The title appearing on hovering the zoom in button. The text itself defaults to "+" and can be changed in the button options.Defaults to: Zoom in
- Parameters:
zoomIn- aZoomInobject.
-
getZoomOut
Getter for the field
zoomOut.- Returns:
- a
ZoomOutobject. - See Also:
-
setZoomOut
The title appearing on hovering the zoom out button. The text itself defaults to "-" and can be changed in the button options.Defaults to: Zoom out
- Parameters:
zoomOut- aZoomOutobject.
-