There are several ways. The small boxes on the right are called 'panels' and there's one panel 'Sports' where you can select 'Year' in the dropdown to show the total mileage/duration of the year for each sport. Simply click on the value to switch between distance/duration.
An other option is to click on the year number in the calendar view which will load the calendar list for the whole year with a summary at the bottom.
The statistics section also has a dropdown where you can select the 2025 to see all months of the year or the 'Year on year' comparison to see the summary for each year.
As alternative, there's a new (beta) activity list/search at
https://runalyze.com/my/activities where you can check the summary at the bottom of the table and add a filter for any date range you want.