In general, labels for ships of a single class are aligned vertically with the topmost ship in a column carrying the class name.
In an attempt to show the full timeline of the actual existence of each ship, the final dates on each bar may variously be the date struck, sold, scrapped, scuttled, sunk as a reef, etc., as appropriate to show last time it existed as a floating object.
This page is based on this Wikipedia article Text is available under the CC BY-SA 4.0 license; additional terms may apply. Images, videos and audio are available under their respective licenses.