Skip to content

Euro area unemployment at 6.2%

[]
0) { let rootNavigationList = fragmentElement.querySelector(‘.ecl-inpage-navigation__list’); let sampleSubNavigationList = fragmentElement.querySelector(‘#sample-sub-inpage-navigation-list’); sampleSubNavigationList.classList.add(‘hide’); let sampleNavigationItem = fragmentElement.querySelector(‘.ecl-inpage-navigation__item’); sampleNavigationItem.classList.add(‘hide’); let skipButtonHref = ”; let currentLevel = 0; let currentNavigationList = rootNavigationList; let lastNavigationItem = null; let newNavigationItem = null; for (let i = 0; i { element.classList.remove(‘has-active-item’); }); } function updateCompactedItems(event) { const activeNavItem = document.querySelector(‘.ecl-inpage-navigation__item–active’); if (activeNavItem !== null) { let parentNavItem = activeNavItem; if (activeNavItem.parentElement.classList.contains(‘estat-inpage-navigation–compact’)) { parentNavItem = activeNavItem.parentElement.parentElement; } if (!parentNavItem.classList.contains(‘has-active-item’)) { clearActivatedParents(); parentNavItem.classList.add(‘has-active-item’); } } else { clearActivatedParents(); } } function navItemObserverCallback(mutationList, observer) { mutationList.forEach(function(mutation) { if (mutation.type === ‘attributes’ && mutation.attributeName === ‘class’) { updateCompactedItems(); } }); } function navItemObserverInit() { const options = {attributes: true}; const navItemObserver = new MutationObserver(navItemObserverCallback); const navItems = document.querySelectorAll(‘.ecl-inpage-navigation__item’); navItems.forEach((navItem) => { navItemObserver.observe(navItem, options); }); } $(document).ready(function() { const notInEditMode = document.querySelector(‘.fragments-editor’) == null; if (notInEditMode) { inpageNavigationFragmentInit(); const isHasSelectorSupported = CSS.supports(‘selector(:has(*))’); if (!isHasSelectorSupported && document.querySelector(‘nav.in-compact-mode’) !== null) { console.log(‘has() selector is not supported -> navigation in compact mode is handled by auxiliary scripts’); navItemObserverInit(); }; ECL.autoInit(); } else { const sampleNavigationItem = fragmentElement.querySelector(‘.ecl-inpage-navigation__item’); sampleNavigationItem.classList.remove(‘hide’); }; });;}());]]>

Printing can have negative environmental impacts due to paper waste. We encourage you to explore eco-friendly alternatives. Bookmarking this page in your browser allows you to access it anytime.

This publication can also be converted to PDF, if you have a PDF printer installed on your computer. PDF printers function as virtual printers, enabling you to create digital copies of web pages and access the content offline.

{ const buttonPrintPage = document.getElementById(‘estat-print-page-modal-toggle’); const cookieSkipModal = ‘skipModalBeforePrinting’; if (configuration.displayInPageHeader) { const headerElement = document.querySelector(‘.ecl-page-header .ecl-page-header__meta’) || document.querySelector(‘.ecl-page-header .ecl-page-header__title-container ‘) if (headerElement) { headerElement.prepend(buttonPrintPage); headerElement.classList.add(‘ecl-u-width-100’) } } buttonPrintPage.addEventListener(‘click’, () => { const skipModal = readCookie(cookieSkipModal); if (skipModal == ‘true’) { window.print(); } else { const eclModalElement = document.getElementById(‘estat-print-page-modal’); const eclModal = ECL.components.get(eclModalElement); eclModal.openModal(); } }); document.getElementById(‘print-submit’).addEventListener(‘click’, () => { const skipModal = document.getElementById(‘checkbox-skip-modal’).checked if (skipModal) { writeCookieWithMaxAgeValue(cookieSkipModal, ‘true’, 15768000); } else { deleteCookie(cookieSkipModal); } window.print(); }); });;}());]]>

EU at 5.8%

Overview

In January 2025, the euro area seasonally-adjusted unemployment rate was 6.2%, stable compared with December 2024 and down from 6.5% in January 2024. The EU unemployment rate was 5.8% in January 2025, also stable compared with December 2024 and down from 6.1% in January 2024. These figures are published by Eurostat, the statistical office of the European Union.

Eurostat estimates that 12.824 million persons in the EU, of whom 10.655 million in the euro area, were unemployed in January 2025.

  • Compared with December 2024, unemployment decreased by 8 thousand in the EU and by 42 thousand in the euro area.

  • Compared with January 2024, unemployment decreased by 510 thousand in the EU and by 547 thousand in the euro area.

Unemployment rates

Youth unemployment

In January 2025, 2.856 million young persons (under 25) were unemployed in the EU, of whom 2.263 million were in the euro area. In January 2025, the youth unemployment rate was 14.6% in the EU, stable compared with December 2024, and 14.1% in the euro area, down from 14.2% in the previous month.

  • Compared with December 2024, youth unemployment increased by 17 thousand in the EU and by 3 thousand in the euro area.

  • Compared with January 2024, youth unemployment decreased by 36 thousand in the EU and by 93 thousand in the euro area.

   Youth unemployment rates 

Unemployment by sex

In January 2025, the unemployment rate for women was 6.0% in the EU, stable compared with the previous month, and the unemployment rate for men was 5.6%, also stable compared with December 2024. In the euro area, the unemployment rate for women was 6.4% and the unemployment rate for men was 6.0%, both stable compared with December 2024.

Additional labour market indicators

The estimates in this News Release are based on the globally used International Labour Organisation (ILO) standard definition of unemployment, which counts as unemployed people without a job who have been actively seeking work in the last four weeks and are available to start work within the next two weeks.

To capture in full the labour market situation, the data on unemployment have been complemented by additional indicators, e.g. underemployed part-time workers, persons seeking work but not immediately available and persons available to work but not seeking, released together with LFS data for the third quarter of 2024.

LFS data for the fourth quarter of 2024 will be released on 14 March 2025.

Tables

Seasonally adjusted unemployment, totals

Rates (%)

Number of persons (in thousands)

2024

2024

2025

2024

2024

2025

Jan

Oct

Nov

Dec

Jan

Jan

Oct

Nov

Dec

Jan

6.5

6.2

6.2

6.2

6.2

11 202

10 733

10 637

10 697

10 655

6.1

5.8

5.8

5.8

5.8

13 334

12 850

12 769

12 832

12 824

5.7

5.8

5.9

6.0

5.8

302

315

319

324

317

4.6

4.1

4.0

4.0

3.9

141

123

122

120

119

3.0

2.6

2.8

2.6

2.6

154

132

147

138

139

6.0

5.8

6.8

7.0

6.8

193

191

219

232

224

3.2

3.4

3.4

3.5

3.5

1 429

1 540

1 546

1 555

1 564

7.4

7.5

7.5

7.8

7.6

56

57

57

58

57

4.5

4.2

4.2

4.5

4.0

126

121

122

129

116

11.7

9.7

9.5

9.3

8.7

557

463

450

437

408

11.9

10.9

10.7

10.6

10.4

2 886

2 653

2 616

2 599

2 562

7.5

7.3

7.3

7.3

7.3

2 335

2 289

2 280

2 264

2 283

5.5

4.7

4.6

4.6

4.5

97

83

82

81

80

7.1

6.1

6.0

6.4

6.3

1 815

1 546

1 540

1 630

1 621

5.3

4.7

4.7

4.9

5.0

27

24

24

25

26

6.9

7.0

7.0

6.9

6.9

66

65

65

65

65

7.4

6.9

6.5

6.4

6.6

116

107

102

99

105

5.9

6.4

6.5

6.4

6.4

20

22

22

22

22

4.3

4.5

4.5

4.4

4.3

213

222

223

215

210

3.4

3.0

2.9

3.0

3.0

11

10

10

10

10

3.6

3.7

3.7

3.7

3.8

368

376

372

373

386

5.0

5.7

5.1

5.4

5.5

234

267

239

254

261

3.0

2.9

2.8

2.7

2.6

526

504

488

474

464

6.4

6.6

6.6

6.4

6.2

347

359

359

349

342

5.4

5.7

5.6

5.7

5.5

455

464

455

463

451

3.5

3.9

3.7

3.5

3.3

36

40

38

36

34

5.6

5.2

5.2

5.1

5.1

155

143

142

142

141

7.8

8.6

8.6

8.6

8.7

222

243

244

245

246

8.2

8.6

8.7

8.8

8.9

469

494

499

504

510

3.6

3.4

3.4

3.5

3.6

8

8

8

8

8

3.9

4.0

4.0

3.9

3.9

116

121

120

119

119

4.0

4.5

4.5

4.5

:

205

232

232

232

:

3.7

4.1

4.2

4.1

4.0

6 213

7 000

7 180

6 930

6 898

Seasonally adjusted youth (under 25s) unemployment

Rates (%)

Number of persons (in thousands)

2024

2024

2025

2024

2024

2025

Jan

Oct

Nov

Dec

Jan

Jan

Oct

Nov

Dec

Jan

14.8

14.5

14.4

14.2

14.1

2 356

2 309

2 285

2 260

2 263

14.8

14.8

14.8

14.6

14.6

2 892

2 879

2 877

2 839

2 856

16.9

17.5

17.5

17.5

:

72

82

82

82

:

15.4

10.3

9.7

9.6

10.1

19

11

11

11

12

7.9

10.0

10.2

9.3

10.4

23

28

29

26

30

12.2

14.5

17.5

16.3

16.1

57

70

85

82

79

6.2

6.7

6.6

6.5

6.4

283

309

306

303

300

17.2

16.8

16.3

19.0

18.9

10

10

10

11

11

11.1

11.0

11.4

12.7

11.9

41

40

41

46

43

23.2

21.5

20.6

22.5

19.5

62

56

50

52

45

28.1

25.6

25.2

25.2

25.3

492

460

452

454

460

18.2

19.3

18.8

18.5

18.6

618

640

618

605

611

17.1

16.1

16.1

16.1

:

21

19

19

19

:

21.9

18.3

20.2

19.0

18.7

331

255

283

269

267

15.7

9.9

9.9

9.9

:

5

3

3

3

:

11.1

13.8

13.8

13.4

12.8

7

9

9

8

8

14.0

15.3

12.6

11.8

14.1

14

15

13

11

14

22.1

22.3

22.1

21.5

21.6

6

6

6

6

6

15.2

16.5

15.9

14.4

13.8

47

52

49

44

42

9.1

10.5

10.6

10.4

10.0

3

3

3

3

3

8.2

8.9

8.7

8.7

8.9

149

161

158

158

162

9.9

11.5

11.1

10.5

11.2

51

60

57

55

60

11.6

10.4

10.3

10.2

10.4

132

120

119

118

120

24.0

21.3

20.9

20.4

19.5

92

82

81

79

76

19.7

26.3

26.3

26.3

:

103

135

135

135

:

10.3

9.4

9.4

9.4

:

8

7

7

7

:

20.5

17.5

17.3

17.1

16.7

29

25

24

24

23

17.8

18.9

19.0

19.1

19.1

57

62

62

62

62

23.6

24.4

24.5

24.6

24.7

161

166

167

168

170

8.4

8.7

8.7

8.7

8.7

3

3

3

3

3

12.5

13.0

10.1

12.6

11.2

54

57

44

56

49

7.9

9.0

9.0

8.8

:

46

53

53

53

:

Seasonally adjusted unemployment rates (%), by sex

Males

Females

2024

2024

2025

2024

2024

2025

Jan

Oct

Nov

Dec

Jan

Jan

Oct

Nov

Dec

Jan

6.3

6.0

6.0

6.0

6.0

6.8

6.5

6.4

6.4

6.4

5.8

5.6

5.6

5.6

5.6

6.3

6.1

6.0

6.0

6.0

6.2

6.2

6.2

6.3

6.2

5.1

5.4

5.5

5.5

5.4

4.6

4.5

4.6

4.6

4.5

4.6

3.6

3.4

3.3

3.3

2.4

2.3

2.1

2.2

2.6

3.7

2.9

3.7

3.2

2.7

5.9

5.1

6.6

7.0

6.6

6.0

6.6

6.9

7.1

7.0

3.4

3.7

3.7

3.7

3.7

3.0

3.2

3.2

3.2

3.1

7.1

8.0

7.9

8.5

8.1

7.7

7.1

7.2

7.1

7.1

4.3

4.3

4.5

4.9

4.0

4.7

4.1

4.0

4.0

4.1

9.9

7.9

7.4

7.4

7.0

13.9

12.0

12.1

11.7

10.9

10.6

9.7

9.6

9.5

9.3

13.3

12.1

12.0

11.9

11.7

7.7

7.6

7.5

7.4

7.6

7.3

7.1

7.1

7.1

7.0

5.1

4.8

4.8

4.8

4.8

5.9

4.5

4.4

4.3

4.3

6.4

5.5

5.5

5.7

5.6

8.1

6.8

6.7

7.3

7.3

5.4

4.5

4.4

4.5

4.6

5.2

4.9

5.1

5.3

5.5

7.6

8.4

8.4

8.4

8.6

6.2

5.6

5.6

5.5

5.3

7.7

7.6

7.2

7.0

7.6

7.1

6.1

5.7

5.7

5.6

5.9

6.5

6.6

6.5

6.5

5.8

6.3

6.3

6.3

6.3

4.4

4.5

4.5

4.4

4.3

4.3

4.5

4.6

4.4

4.2

3.5

3.0

2.9

3.0

3.0

3.3

2.9

2.9

3.0

3.0

3.5

3.5

3.4

3.5

3.6

3.8

3.9

3.9

3.9

4.0

5.3

5.6

5.8

5.8

5.7

4.5

5.7

4.2

5.0

5.2

2.8

2.6

2.5

2.5

2.4

3.2

3.2

3.0

2.9

2.8

6.0

6.2

6.3

6.2

6.0

6.9

6.9

6.8

6.5

6.5

5.4

5.9

5.7

5.9

5.8

5.3

5.4

5.4

5.3

5.1

3.3

3.5

3.1

2.9

2.8

3.7

4.4

4.3

4.2

4.0

5.2

4.6

4.6

4.5

4.5

6.0

5.8

5.8

5.8

5.7

8.5

9.4

9.3

9.3

9.4

7.0

7.7

7.8

7.9

7.9

8.2

8.4

8.4

8.5

8.6

8.2

8.9

9.0

9.1

9.2

3.9

3.6

3.7

3.8

3.9

3.2

3.1

3.1

3.2

3.2

4.7

4.2

4.0

4.4

3.9

4.2

3.8

3.5

3.9

3.5

3.9

4.4

4.3

4.3

:

4.2

4.8

4.8

4.8

:

Notes for users

Revisions and timetable

The data in this News Release can be subject to revisions, caused by updates to the seasonally adjusted series whenever new monthly data are added; the inclusion of the most recent LFS data in the calculation process; update of seasonal adjustment models with complete annual data.

Compared with the rates published in News Release of 30 January 2025, the December 2024 unemployment rate for the euro area has been revised from 6.3% to 6.2% and the unemployment rate for the EU has been revised from 5.9% to 5.8%. Among EU Member States, the rate has been revised by more than 0.1 percentage points (pp) downwards for Slovenia (by 1.7 pp), France (by 0.5 pp), Poland (by 0.3 pp) and Slovakia (by 0.2 pp). The rate has been revised by more than 0.1 percentage points (pp) upwards for Estonia and Romania (by 0.5 pp each), Cyprus (by 0.4 pp), Ireland, Luxembourg and Sweden (by 0.3 pp each) as well as for Belgium, Bulgaria and Italy (by 0.2 pp each).

Country notes

Germany, the Netherlands, Finland, Sweden as well as Iceland and Norway: the trend component is used instead of the more volatile seasonally adjusted data.

Estonia and Portugal: 3-month moving averages of LFS data are used instead of pure monthly indicators.

France: Estimates are calculated using inputs from the French public employment service. An updated national methodology (in French) is in use since January 2025, affecting the time series consistency of the input data. To ensure the comparability of monthly unemployment figures published in this article, Eurostat compiled the evolution between December 2024 and January 2025 youth unemployment figures using statistical models.

Methods and definitions

Eurostat publishes harmonised unemployment rates for individual EU Member States, the euro area and the EU. These unemployment rates are based on the definition recommended by the International Labour Organisation (ILO). The measurement is based on a harmonised data source, the European Union Labour Force Survey (LFS).

Based on the ILO definition, Eurostat defines unemployed persons as persons aged 15 to 74 who:

The unemployment rate is the number of people unemployed as a percentage of the labour force.

The labour force is the total number of people employed plus unemployed. In this news release unemployment rates are based on employment and unemployment data covering persons aged 15 to 74.

The youth unemployment rate is the number of people aged 15 to 24 unemployed as a percentage of the labour force of the same age. Therefore, the youth unemployment rate should not be interpreted as the share of jobless people in the overall youth population.

When data for the most recent month are not available for a Member State, EU and EA aggregates are calculated using the latest data available for that Member State.

Geographical information

Euro area (EA20): Belgium, Germany, Estonia, Ireland, Greece, Spain, France, Croatia, Italy, Cyprus, Latvia, Lithuania, Luxembourg, Malta, the Netherlands, Austria, Portugal, Slovenia, Slovakia and Finland.

European Union (EU27): Belgium, Bulgaria, Czechia, Denmark, Germany, Estonia, Ireland, Greece, Spain, France, Croatia, Italy, Cyprus, Latvia, Lithuania, Luxembourg, Hungary, Malta, the Netherlands, Austria, Poland, Portugal, Romania, Slovenia, Slovakia, Finland and Sweden.

For more information

Share the release

Share component will be rendered here.

* Here the title * … * … * * Here the logo and notes * */ function tableConfiguration() { /** Retrieves the list of table elements (images) */ const tables = document.getElementsByTagName(‘table’); /** We go through the list of tables */ for (let table of tables) { /** We create a section to wrap the table */ let section = document.createElement(‘section’); /** Add table-wrapper class to section element */ section.classList.add(‘table-wrapper’); /** We create a caption element to place the title */ let caption = document.createElement(‘caption’); /** We create thead element to place the headers */ let tHead = document.createElement(‘thead’); /** We create a footer to place notes, datasource and logo */ let footer = document.createElement(‘footer’); /** Retrieves the tBody */ let tBody = table.tBodies[0]; /** Retrieves the table rows */ let rows = tBody.rows; let datalabels = []; let captionContent = []; /** Stores the indexes of the rows to be removed after processing the whole table */ let rowsToRemove = []; /** We go through the rows within the table and extract caption, headers and footnotes */ buildTable(rows, captionContent, datalabels, footer, rowsToRemove); deleteRows(table, rowsToRemove); addTableCaption(caption, captionContent); addTableHeaders(table, tHead, datalabels); wrapInSection(section, table, caption, tHead, tBody, footer); linkHeaders(table); } } /** * Builds a table with the expected format: adding caption, datalabels and footer * @param {*} rows – The table rows * @param {*} captionContent – The content of the caption (title) * @param {*} datalabels – The list of datalabels (table headers) * @param {*} footer – The footer element * @param {*} rowsToRemove – Array containing the index of the rows to be removed */ function buildTable(rows, captionContent, datalabels, footer, rowsToRemove) { let rowIndex = 0; for (let row of rows) { let cells = row.cells; /** We check the first cell in order to guess the cell type: th, td; and cell classes: title, datalabel… */ let firstCell = row.firstElementChild; /** If the th class name is title, we convert this th into a caption */ if (isCaption(firstCell)) { addCaption(cells, captionContent, rowIndex, rowsToRemove) } /** If the th class name is datalabel, we add the header to the tHead component */ else if (isDatalabel(firstCell)) { addDatalabels(row, datalabels, rowIndex, rowsToRemove); } /** If the th class name is title, we convert this th into a caption */ else if (isFooter(firstCell)) { addFooter(row, footer, rowIndex, rowsToRemove); } else { row.setAttribute(‘initial-position’, rowIndex); } rowIndex++; } } /** * Checks whether the given cell has the given tagName and className * @param {*} cell – The cell to be checked * @param {*} tagName – The tag name to be checked * @param {*} className – The class name to be checked * @returns true if the cell’s tagName and className matches the given ones, false otherwise */ function checkCell(cell, tagName, className) { return cell.tagName.toLowerCase() === tagName && cell.className.indexOf(className) > -1; } /** * Whether a cell is a caption (title) * @param {*} cell – The cell to be checked * @returns true if the cell is a caption, false otherwise */ function isCaption(cell) { return checkCell(cell, ‘th’, ‘title’); } /** * Whether a cell is a datalabel * @param {*} cell – The cell to be checked * @returns true if the cell is a datalabel, false otherwise */ function isDatalabel(cell) { return checkCell(cell, ‘th’, ‘datalabel’); } /** * Whether a cell is a vertical header * @param {*} cell – The cell to be checked * @returns true if the cell is a vertical header, false otherwise */ function isVerticalHeader(cell) { return checkCell(cell, ‘th’, ‘vertical-header’); } /** * Whether a cell is a footer * @param {*} cell – The cell to be checked * @returns true if the cell is a footer, false otherwise */ function isFooter(cell) { return checkCell(cell, ‘td’, ‘footer’); } /** * Adds the content of the caption cells: paragraphs * @param {*} cells – The cells belonging to the row * @param {*} captionContent – The content of the caption * @param {*} rowIndex – The index of current row * @param {*} rowsToRemove – Array containing the index of the rows to be removed */ function addCaption(cells, captionContent, rowIndex, rowsToRemove) { for (let cell of cells) { /** We must add all the Child Nodes of each th title Cell */ for (let childNode of cell.childNodes) { captionContent.push(childNode); } } /** We remove the row from within the tables as now it’s out in the caption */ rowsToRemove.push(rowIndex); } /** * Adds the row as a datalabel * @param {*} row – The current row * @param {*} datalabels – List of datalabels * @param {*} rowIndex – The index of current row * @param {*} rowsToRemove – Array containing the index of the rows to be removed */ function addDatalabels(row, datalabels, rowIndex, rowsToRemove) { datalabels.push(row); /** We remove the row from within the tables as now it’s out in the caption */ rowsToRemove.push(rowIndex); } /** * Adds the notes and logo * @param {*} row – The current row * @param {*} footer – The footer of the table * @param {*} rowIndex – The index of current row * @param {*} rowsToRemove – Array containing the index of the rows to be removed */ function addFooter(row, footer, rowIndex, rowsToRemove) { /** We create a div element for notes and logo */ const notes = document.createElement(‘div’); notes.classList.add(‘footer-element’, ‘notes’); /** We add the content to the new note element */ notes.innerHTML = row.firstElementChild.innerHTML; /** We create a footer to place notes, datasource and logo */ footer.appendChild(notes); /** We remove the row from within the tables as now it’s out in the footer */ rowsToRemove.push(rowIndex); } /** * Deletes the rows which data has been moved to either caption, tHead or footer * @param {*} table – The current table * @param {*} rowsToRemove – Array containing the index of the rows to be removed */ function deleteRows(table, rowsToRemove) { /** We go through the title rows and append them to the caption element */ for (let j = rowsToRemove.length – 1; j >= 0; j–) { table.deleteRow(rowsToRemove[j]); } } /** * Adds the caption to the table. * @param {*} caption – The caption dom element * @param {*} captionContent – The content of the caption */ function addTableCaption(caption, captionContent) { /** We go through the Caption Content and append the nodes to the caption element */ for (let node of captionContent) { caption.appendChild(node); } } /** * Adds the headers to the table * @param {*} table – The table to make sortable * @param {*} tHead – The thead dom element * @param {*} datalabels – The datalabels to be added (headers) */ function addTableHeaders(table, tHead, dataLabels) { let sortable = false; /** We go through the header rows and append them to the tHead element */ for (let dataLabelRow of dataLabels) { let cells = dataLabelRow.cells; for (let th of cells) { if (th.classList.contains(‘sortable’)) { sortable = true; let button = createNewSortButton(); th.appendChild(button); } } tHead.appendChild(dataLabelRow); } if (sortable) { table.classList.add(‘sortable’); } } function createNewSortButton() { // creates sort button const button = document.createElement(‘button’); button.classList.add(‘ecl-table__arrow’); // creates a generic svg element for the two arrows const svgIconUp = document.createElementNS(‘http://www.w3.org/2000/svg’, ‘svg’); svgIconUp.setAttribute(‘xml:space’, ‘preserve’); svgIconUp.setAttribute(‘viewBox’, ‘0 0 24 24’); svgIconUp.setAttribute(‘enable-background’, ‘new 0 0 24 24’); svgIconUp.setAttribute(‘focusable’, ‘false’); svgIconUp.setAttribute(‘aria-hidden’, ‘true’); svgIconUp.setAttribute(‘class’, ‘ecl-table__icon ecl-icon ecl-icon–m’); // adds path element of the arrow to the arrow svg const pathIconArrow = document.createElementNS(‘http://www.w3.org/2000/svg’, ‘path’); pathIconArrow.setAttribute(‘d’, ‘M7.4 13 11 9.4c.5-.5 1.4-.5 2 0l3.6 3.6c.9.9.2 2.4-1 2.4H8.4c-1.3 0-1.9-1.5-1-2.4’); svgIconUp.appendChild(pathIconArrow); // clones the generic arrow svg including the child path also const svgIconDown = svgIconUp.cloneNode(true); // seups the arrow directions to up and down by extra css classes svgIconUp.classList.add(‘ecl-table__icon-up’); svgIconDown.classList.add(‘ecl-table__icon-down’); // insert the two arrow svg elements into the button button.appendChild(svgIconUp); button.appendChild(svgIconDown); return button; } /** * Places all the elements in their places and wraps the table into a section. * @param {*} section – The section (dom element) which will wrap table and footer * @param {*} table – The table to be wrapped * @param {*} caption – The caption (dom element) to be added to the table * @param {*} tHead – The thead (dom element) to be added to the table * @param {*} tBody – The tbody (dom element) to be added to the table * @param {*} footer – The footer (dom element) to be added to the section */ function wrapInSection(section, table, caption, tHead, tBody, footer) { /** We insert caption and thead before tbody */ table.insertBefore(caption, tBody); table.insertBefore(tHead, tBody); /** We wrap the table into a section */ table.parentNode.insertBefore(section, table); section.appendChild(table); section.appendChild(footer); } /** * Adds ids and header attributes to link every cell to all related headers so that machines can correctly read the figures. * @param {*} table – The table to be wrapped */ function linkHeaders(table) { const headers = getHeaders(table.tHead); const tBody = table.tBodies ? table.tBodies[0] : null; addHeaderLinks(tBody, headers); } function getHeaders(tHead) { const headers = []; if (tHead) { let i = 0; for (let row of tHead.rows) { /** We add a new row in the headers array */ headers.push([]); /** Stores the header ids and colSpan so we can guess to which cells (td) we must add the headers */ let j = 0; for (const cell of row.cells) { cell.setAttribute(‘id’, ‘h_’ + i + ‘_’ + j); headers[i].push({ id: cell.id, colSpan: cell.colSpan ? cell.colSpan : 1 }); j++; } i++; } } return headers; } function addHeaderLinks(tBody, headers) { if (tBody) { let i = 0; for (let row of tBody.rows) { let j = 0; for (const cell of row.cells) { /** If the cell is a vertical header we add its id */ if (cell.className.indexOf(‘vertical-header’) > -1) { cell.setAttribute(‘id’, ‘vh_’ + i + ‘_’ + j); } const headerLinks = getHeaderLinks(headers, j, cell.colSpan, row.cells[0]); cell.setAttribute(‘headers’, headerLinks); j++; } i++; } } } /** * Retrieves the header (ths) ids in order to link them to a specific cell (td) * @param {*} rows – The rows containing all headers * @param {*} index – The index of the specific cell * @param {*} colSpan – The colspan of the specific cell * @param {*} firstCell – The first cell of the row. Used to reference possible vertical headers * @returns A string containing the list of header ids split by spaces */ function getHeaderLinks(rows, index, colSpan, firstCell) { /** It will contain the header ids */ let links = ”; /** We add the reference of the vertical header if there is */ if (index > 0 && firstCell.className.indexOf(‘vertical-header’) > -1) { links = firstCell.id; } /** We go through the list of header rows */ for (const headers of rows) { /** Accumulates the colspan of the checked headers */ let sumColSpan = 0; /** We go through the list of headers for the specific header row */ for (const header of headers) { /** We check that the index of the cell belongs to a specific column */ if (index >= sumColSpan && index chartObj.resize()).observe(chartDiv); } } /** * Customizes the chart by applying custom events, axis formats, tooltips, and axis labels. * @param option – The chart options object. */ function customChartOptions(option) { setClickableDatasourceLinks(option); setAxisFormatter(option); setTooltipFormatter(option); } /** * Attaches event handlers to a chart: ‘legendselectchanged’. * * @param {Chart} chart – The chart object. */ function addEventHandlers(chart) { /** Attach an event handler for the ‘legendselectchanged’ event */ chart.on(‘legendselectchanged’, (event) => { /** Call the onChartLegendSelected function with the event and chart object */ onChartLegendSelected(event, chart); }); } /** * Handles the legend selected changed event of the chart. * @param {any} event – The event object containing the selected legend items. * @param {any} chart – The chart object. */ function onChartLegendSelected(event, chart) { /** Get the selected legend items */ const selected = event.selected; /** Count the number of selected legend items */ const selectedCount = Object.values(selected).filter(Boolean).length; /** If all legend items are deselected, keep the selection on the last clicked item */ if (selectedCount === 0) { selected[event.name] = true; } /** Update the legend selection */ chart.setOption({ legend: { selected: selected } }); } /** * Attaches custom events to the provided option object. * * @param {object} option – The option object to attach custom events to. */ function setClickableDatasourceLinks(option) { /** If the table has datasource link */ if (option.graphic && option.graphic.length >= 3) { /** Attach an onclick event handler to the third element of the graphic array (datasource links) */ option.graphic[2].onclick = function (event) { /** If the element has a link defined in its style */ if (this.style?.link) { /** Open the link in a new tab/window */ window.open(this.style.link, ‘_blank’); } }; } } /** * Sets the default axis formatter for axis labels. * @param {object} option – The option object to update the axis formatter * */ function setAxisFormatter(option) { /** The default unit used in axis labels */ const defaultUnit = ‘%’; /** If the yAxis are used as values */ if (option.yAxis.type === ‘value’) { /** If the yAxis unit is not defined, set % as default */ option.yAxis.axisLabel.unit = option.yAxis.axisLabel.unit ? option.yAxis.axisLabel.unit : defaultUnit; /** If the yAxis label padding is not defined, set 15 as default suffix */ option.yAxis.axisLabel.padding = option.yAxis?.axisLabel?.padding ? option.yAxis.axisLabel.padding : 15; /** Use the custom formatter */ option.yAxis.axisLabel.formatter = (value) => customAxisFormatter(option.lang, value, option.yAxis.axisLabel.unit, parseInt(option.yAxis.axisLabel.decimals)); // Use the custom formatter } /** If the xAxis are used as values */ if (option.xAxis.type === ‘value’) { /** If the xAxis unit is not defined, set % as default */ option.xAxis.axisLabel.unit = option.xAxis.axisLabel.unit ? option.xAxis.axisLabel.unit : defaultUnit; /** Use the custom formatter */ option.xAxis.axisLabel.formatter = (value) => customAxisFormatter(option.lang, value, option.xAxis.axisLabel.unit, parseInt(option.xAxis.axisLabel.decimals)); } /** If xAxis type is category */ else if (option.xAxis.type === ‘category’) { boldCountries(option); } } /** * Formats a numeric value with a specified unit and decimal precision. * * @param {number} value – The numeric value to be formatted. * @param {string} unit – The unit to be appended to the formatted value. * @param {number} decimals – The number of decimal places to round the value to. * @returns {string} The formatted string representation of the value with unit. */ function customAxisFormatter(lang, value, unit, decimals) { /** * Check the language and format the value accordingly. * For French (fr) and German (de), use commas instead of dots. * For other languages (en), use the default format with dots. */ const formattedValue = lang === ‘fr’ || lang === ‘de’ ? `${value.toFixed(decimals).replace(‘.’, ‘,’)}${unit}` : `${value.toFixed(decimals)}${unit}`; return formattedValue; } /** * Enriches the x-axis labels with formatting based on certain values. * If EU and Euro Area are included, those must be written in bold * @remarks * This function enriches the x-axis labels with formatting based on certain values, such as making “EU” and “Euro Area” bold. * @param {object} option – The option object to set bold countries to. */ function boldCountries(option) { option.xAxis.axisLabel.formatter = function (v) { /** Convert input string to lowercase for case-insensitive comparison */ const lowerCaseV = v ? v.toLowerCase() : ”; /** Check for specific label values and format them accordingly, check for “EU” or “UE” */ if (lowerCaseV === “eu” || lowerCaseV === “ue”) { // return `{eu|${v}}`; } /** Check for “Euro Area”, “Euroraum”, or “Zone Euro” */ else if (lowerCaseV === “euro area” || lowerCaseV === “euroraum” || lowerCaseV === “zone euro”) { return `{euroArea|${v}}`; } return v; }; /** Set the rich property of the axis label to apply the bold formatting */ option.xAxis.axisLabel.rich = { eu: { fontWeight: “bold”, }, euroArea: { fontWeight: “bold” } }; } /** * Handles formatting the tooltip decimal convention in the graphic. * @remarks * This function formats the tooltip based on the language and decimal convention. * * @param {object} option – The option object to add custom tooltip. */ function setTooltipFormatter(option) { /** * Tooltip formatter for ECharts. * @param {object[]} params – Parameters for the tooltip formatter. * @param {string} params[].name – Name of the x-axis value. * @param {string} params[].seriesName – Name of the series. * @param {number} params[].value – Value of the data point. * @param {string} params[].color – Color of the series. * @param {string} ticket – Ticket for the callback. * @param {Function} callback – Callback function. * @returns {string} – Formatted tooltip content. */ option.tooltip.formatter = function (params, ticket, callback) { /** Retrieve the x-axis value for the tooltip */ const xAxisValue = params[0].name; /** If xAxisValue is empty, return null to hide the tooltip */ if (!xAxisValue) { return null; } /** Create the tooltip content container with a white background and padding */ let tooltipContent = ”; /** Add the x-axis value to the tooltip content */ /** @type {string} XAxis */ tooltipContent += ” + xAxisValue + ‘]]>

‘; /** Retrieve the order from the tooltip option */ const sortOrder = option.tooltip.order; /** Sort the ‘params’ array based on the ‘sortOrder’ parameter. */ switch (sortOrder) { /** Sort by series name in ascending order. */ case ‘seriesAsc’: params = params.sort((a, b) => a.seriesName.localeCompare(b.seriesName)); break; /** Sort by series name in descending order. */ case ‘seriesDesc’: params = params.sort((a, b) => b.seriesName.localeCompare(a.seriesName)); break; /** Sort by numerical value in ascending order. */ case ‘valueAsc’: params = params.sort((a, b) => parseFloat(a.value) – parseFloat(b.value)); break; /** Sort by numerical value in descending order. */ case ‘valueDesc’: params = params.sort((a, b) => parseFloat(b.value) – parseFloat(a.value)); break; /** Reverse the current order. */ case ‘reverse’: params.reverse(); break; default: break; } /** Iterate over each series in the tooltip parameters */ for (const param of params) { /** Retrieve the name and value of the current series */ let seriesName = param.seriesName; let value = param.value; /** Replace every specific apostrphe by simple one. */ seriesName = seriesName.replaceAll(“’”, “‘”); /** Convert the numeric value to its string representation. */ const strValue = String(value); /** Retrieve the axis used as value */ const axis = option.yAxis.type === ‘value’ ? option.yAxis : option.xAxis; /** Initialize the number of decimal places */ let decimals = option.tooltip.decimals; /** Check if decimals configuration is set to default and the value contains decimal places */ if (!decimals && strValue.indexOf(‘.’) > -1) { /** Calculate the number of decimal places */ decimals = strValue.substring(strValue.indexOf(‘.’), strValue.length – 1).length; } else { /** If there are no decimal places, format the value with 1 decimal place */ decimals = decimals || 1; /** Convert the value to a fixed-point notation string with a specified number of decimal places. */ value = Number(value).toFixed(decimals); } /** Convert -0 value to 0 with the specified or calculated number of decimal places.*/ if (Number(value) == -0) { value = (Number(value) + 0).toFixed(decimals); } /** Extract the unit from within the axis label */ const unit = axis.axisLabel.unit ? axis.axisLabel.unit : ”; /** Format the value using the appropriate number of decimal places */ if (isNaN(value)) { value = ‘N/A’; } else { value = Number(value).toLocaleString(option.lang ? option.lang : ‘en’, { minimumFractionDigits: decimals }) + unit; } /** Retrieve the color of the current series */ const color = param.color; /** * Add the series name and value to the tooltip content * Use a circle icon with the series color */ tooltipContent += ‘

‘ + ” + ” + ” + seriesName + ” + ” + ” + value + ” + ‘

‘; } /** Close the tooltip content container */ tooltipContent += ”; /** Return the formatted tooltip content */ return tooltipContent; } } /* * This content is licensed according to the W3C Software License at * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document * * File: sortable-table.js * * Desc: Adds sorting to a HTML data table that implements ARIA Authoring Practices */ class SortableTable { constructor(tableNode) { this.tableNode = tableNode; this.columnHeaders = tableNode.querySelectorAll(‘thead th.sortable’); this.sortColumns = []; for (let i = 0; i b.value ? -1 : 1; } } else if (isNumber) { return a.value – b.value; } else { return a.value

Subscribe to receive the latest Eurostat Euro indicators releases

{ if (document.querySelector(selector)) { return resolve(document.querySelector(selector)); } const observer = new MutationObserver(mutations => { if (document.querySelector(selector)) { resolve(document.querySelector(selector)); observer.disconnect(); } }); observer.observe(document.body, { childList: true, subtree: true }); }); } waitForElm(‘div.chart’).then((elm) => { // Has to be run after cool-ngx-editor.js script that is tweeking the charts const elements = document.getElementsByClassName(“chart”); for (let i = 0; i < elements.length; i++) { let div = document.createElement('div'); div.id = "share-chart-" + i; div.style = "position: absolute; right: 0; z-index: 50;"; elements[i].prepend(div); let script = document.createElement('script'); script.type = "application/json"; let url = new URL(window.location.href); url.searchParams.set('item', 'chart'); url.searchParams.set('id', i); let code = '{"service": "sbkm", "version": "2.0", "popup": false, "icon": true, "more" : ["facebook", "x", "linkedin", "email"], "renderTo": "' + div.id + '", "to": ["more"], "target": true, "link": "' + url.href + '", "via": "EU_Eurostat", "title": "' + getJournalArticleTitle() + '"}'; try { script.appendChild(document.createTextNode(code)); } catch (e) { s.text = code; } elements[i].parentNode.insertBefore(script, elements[i].nextSibling); } }); // Add share button to tables $(document).ready(function() { // Has to be run after cool-ngx-editor.js script that is tweeking the tables const tables = document.getElementsByTagName("table"); for (let i = 0; i position) { await new Promise(r => setTimeout(r, 500)); // Wait a bit so that it doesn’t scroll too far allItems[position].scrollIntoView(true); } } });;}());]]>