com.vaadin.flow.component.charts.model.
Class Lang
All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
String[]
String[]
String[]
String[]
void
setContextButtonTitle
(String contextButtonTitle) Exporting module menu.
void
setDecimalPoint
(String decimalPoint) The default decimal point used in the
Highcharts.numberFormat
method unless otherwise specified in the function arguments.void
setDownloadJPEG
(String downloadJPEG) Exporting module only.
void
setDownloadPDF
(String downloadPDF) Exporting module only.
void
setDownloadPNG
(String downloadPNG) Exporting module only.
void
setDownloadSVG
(String downloadSVG) Exporting module only.
void
setDrillUpText
(String drillUpText) The text for the button that appears when drilling down, linking back to the parent series.
void
setInvalidDate
(String invalidDate) What to show in a date field for invalid dates.
void
setLoading
(String loading) The loading text that appears when the chart is set into the loading state following a call to
chart.showLoading
.void
An array containing the months names.
void
The text to display when the chart contains no data.
void
setNumericSymbolMagnitude
(Number numericSymbolMagnitude) The magnitude of numericSymbols replacements.
void
setNumericSymbols
(String[] numericSymbols) Metric prefixes used to shorten high numbers in axis labels.
void
setPrintChart
(String printChart) Exporting module only.
void
setRangeSelectorFrom
(String rangeSelectorFrom) The text for the label for the "from" input box in the range selector.
void
setRangeSelectorTo
(String rangeSelectorTo) The text for the label for the "to" input box in the range selector.
void
setRangeSelectorZoom
(String rangeSelectorZoom) The text for the label for the range selector buttons.
void
setResetZoom
(String resetZoom) The text for the label appearing when a chart is zoomed.
void
setResetZoomTitle
(String resetZoomTitle) The tooltip title for the label appearing when a chart is zoomed.
void
setShortMonths
(String[] shortMonths) An array containing the months names in abbreviated form.
void
setShortWeekdays
(String[] shortWeekdays) Short week days, starting Sunday.
void
setThousandsSep
(String thousandsSep) The default thousands separator used in the
Highcharts.numberFormat
method unless otherwise specified in the function arguments.void
setWeekdays
(String[] weekdays) An array containing the weekday names.
-
Constructor Details
-
Lang
public Lang()
-
-
Method Details
-
getContextButtonTitle
See Also:
-
setContextButtonTitle
Exporting module menu. The tooltip title for the context menu holding print and export menu items.
Defaults to: Chart context menu
-
getDecimalPoint
See Also:
-
setDecimalPoint
The default decimal point used in the
Highcharts.numberFormat
method unless otherwise specified in the function arguments.Defaults to: .
-
getDownloadJPEG
See Also:
-
setDownloadJPEG
Exporting module only. The text for the JPEG download menu item.
Defaults to: Download JPEG image
-
getDownloadPDF
See Also:
-
setDownloadPDF
Exporting module only. The text for the PDF download menu item.
Defaults to: Download PDF document
-
getDownloadPNG
See Also:
-
setDownloadPNG
Exporting module only. The text for the PNG download menu item.
Defaults to: Download PNG image
-
getDownloadSVG
See Also:
-
setDownloadSVG
Exporting module only. The text for the SVG download menu item.
Defaults to: Download SVG vector image
-
getDrillUpText
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}
-
getInvalidDate
See Also:
-
setInvalidDate
What to show in a date field for invalid dates. Defaults to an empty string.
-
getLoading
See Also:
-
setLoading
The loading text that appears when the chart is set into the loading state following a call to
chart.showLoading
.Defaults to: Loading...
-
getMonths
See Also:
-
setMonths
An array containing the months names. Corresponds to the
%B
format inHighcharts.dateFormat()
.Defaults to: [ "January" , "February" , "March" , "April" , "May" , "June" , "July" , "August" , "September" , "October" , "November" , "December"]
-
getNoData
See Also:
-
setNoData
The text to display when the chart contains no data. Requires the no-data module, see noData.
Defaults to: No data to display
-
getNumericSymbolMagnitude
See Also:
-
setNumericSymbolMagnitude
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
-
getNumericSymbols
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"]
-
getPrintChart
See Also:
-
setPrintChart
Exporting module only. The text for the menu item to print the chart.
Defaults to: Print chart
-
getResetZoom
See Also:
-
setResetZoom
The text for the label appearing when a chart is zoomed.
Defaults to: Reset zoom
-
getResetZoomTitle
See Also:
-
setResetZoomTitle
The tooltip title for the label appearing when a chart is zoomed.
Defaults to: Reset zoom level 1:1
-
getShortMonths
See Also:
-
setShortMonths
An array containing the months names in abbreviated form. Corresponds to the
%b
format inHighcharts.dateFormat()
.Defaults to: [ "Jan" , "Feb" , "Mar" , "Apr" , "May" , "Jun" , "Jul" , "Aug" , "Sep" , "Oct" , "Nov" , "Dec"]
-
getShortWeekdays
See Also:
-
setShortWeekdays
Short week days, starting Sunday. If not specified, Highcharts uses the first three letters of the
lang.weekdays
option. -
getThousandsSep
See Also:
-
setThousandsSep
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:
-
getWeekdays
See Also:
-
setWeekdays
An array containing the weekday names.
Defaults to: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
-
getRangeSelectorFrom
See Also:
-
setRangeSelectorFrom
The text for the label for the "from" input box in the range selector.
Defaults to: From
-
getRangeSelectorTo
See Also:
-
setRangeSelectorTo
The text for the label for the "to" input box in the range selector.
Defaults to: To
-
getRangeSelectorZoom
See Also:
-
setRangeSelectorZoom
The text for the label for the range selector buttons.
Defaults to: Zoom
-