1function chartJsFormatNumber(value, index, values) { 2 var result = value.toLocaleString().replaceAll('.', '!'); 3 result = result.replaceAll(',', '.'); 4 result = result.replaceAll('!', ','); 5 return result; 6} 7 8function chartJsFormatIcelandicDates(value, index, values) { 9 const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; 10 const icelandicMonths = ['Jan', 'Feb', 'Mar', 'Apr', 'MaÃ', 'Jún', 'Júl', 'Ãgú', 'Sep', 'Okt', 'Nóv', 'Des']; 11 if (value) { 12 const parts = value.split(' '); 13 if (parts.length == 2 && (parseInt(parts[1]) > 0 && parseInt(parts[1]) < 32)) { // Unit is set to Days 14 let monthIndex = months.indexOf(parts[0]); 15 return parts[1] + '. ' + icelandicMonths[monthIndex].toLowerCase(); 16 } else if (parts.length == 2 && parts[1].length == 4) { // Unit is set to Months 17 let monthIndex = months.indexOf(parts[0]); 18 return icelandicMonths[monthIndex] + ' ' + parts[1]; 19 } else if (parts.length == 3 && value.indexOf(',') > -1) { // Unit is set to Week 20 let monthIndex = months.indexOf(parts[0]); 21 return parts[1].replace(',', '') + '. ' + icelandicMonths[monthIndex].toLowerCase() + ' ' + shortenYear(parts[2]); 22 } 23 } 24 25 return value; 26} 27 28function shortenYear(year) 29{ 30 if (year.length == 4) { 31 return year.substring(2); 32 } 33 34 return year; 35}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.