src/charts/tooltip.js
/**
         * Figures out which date format to use when showing the date of the current data entry
         * @return {Function} The proper date formatting function
         */
Figures out which date format to use when showing the date of the current data entry
@return {Function} The proper date formatting function
Figures out which date format to use when showing the date of the current data entry @return { Function } The proper date formatting function
function formatDate(date) {
            let settings = forceAxisSettings || defaultAxisSettings;
            let format = null;
            if (settings === axisTimeCombinations.DAY_MONTH || settings === axisTimeCombinations.MONTH_YEAR) {
                format = monthDayYearFormat;
            } else if (settings === axisTimeCombinations.HOUR_DAY || settings === axisTimeCombinations.MINUTE_HOUR) {
                format = monthDayHourFormat;
            }
            return format(date);
        }
function formatDate ( date ) { let settings = forceAxisSettings || defaultAxisSettings ; let format = null ; if ( settings === axisTimeCombinations . DAY_MONTH || settings === axisTimeCombinations . MONTH_YEAR ) { format = monthDayYearFormat ; } else if ( settings === axisTimeCombinations . HOUR_DAY || settings === axisTimeCombinations . MINUTE_HOUR ) { format = monthDayHourFormat ; } return format ( date ) ; }
Figures out which date format to use when showing the date of the current data entry
 @return {Function} The proper date formatting function
Figures out which date format to use when showing the date of the current data entry @return { Function } The proper date formatting function