All articles

The basics

Data layers

A data layer is a series of numbers drawn under a timeline, on the same time axis: world population under a history of the world, CO₂ under the industrial age, temperature under a century of events. You add it from Add context, as you would a context timeline, and read its value at any date without leaving the timeline. Data layers are free on every plan, for anyone who can open a timeline, signed in or not. This article covers how to add one, how to read it, how to share the view, and how to make your own.

In short

  • A data layer is a named series of dated values with a unit, such as world population, drawn under a timeline on its time axis. Timescrolly keeps a library of them, and you can make your own.
  • Reading one is free on every plan: choose Add context in the viewer, then A data layer. It lives in the page's address, and nothing is saved on the timeline.
  • Make your own from Data layers in the dashboard: New data layer asks for a name and an optional unit, then opens the import, where you paste a table or drop a file. Importing replaces all of the layer's points.
  • A layer of yours is seen only by you, a team's only by its members. On a team, owners, admins and contributors can change a layer; only owners and admins can delete it.
  • Free accounts hold 5 layers and 50,000 points in all; paid plans 1,000 and 200,000.

What a data layer is

A data layer is a named series of dated values with a unit, such as world population in people or CO₂ in parts per million. On a wide screen it is drawn as a muted strip below the main timeline, a little shorter than a context timeline's strip, with a line through its values and, where the data gives a range around a value, a faint band around the line. On a phone held upright it is a narrow rail beside the timeline instead, as Small screens describes. A layer uses the main timeline's time axis, so when you drag or zoom, its line moves with the items above it. Nothing is drawn before its first value or after its last.

Timescrolly keeps a library of series that anyone can add, such as world population, CO₂, temperature and life expectancy. Data layers you have made, and those your teams have made, appear in the picker under their own sections. A data layer has no items, comments or collaborators: it is there to be read against a timeline.

Add and remove a data layer

The Add context button is in the toolbar at the bottom of the viewer; on a phone it is in the viewer menu. It first asks What do you want to add?, with two choices: A timeline and A data layer. A data layer opens a picker with a search field and three sections: My data layers, My teams' data layers and From Timescrolly. A row in My teams' data layers names its team, and every row shows the layer's unit and range. Each section lists up to six layers, and search narrows all three at once. Signed out, only From Timescrolly shows. Choose a row and its layer appears as a strip, or as a rail on a phone. A layer you have already added is marked Added, and one marked No points yet can't be chosen.

Add context, then A data layer. A layer you have already added is marked Added; one with no points can't be chosen.

Data layers and context timelines share one limit: three strips in total, timelines and data layers together. At three, the two choices are greyed out and Add context asks you to remove one before adding another. On a wide screen, remove a layer with the close (X) button in its strip's header; on a phone, with Remove from context in its sheet.

A data layer needs a main timeline with real dates, as a context timeline does: on a floating timeline the Add context button explains instead of opening the picker. See what can't be lined up.

Read a data layer

A strip's header shows the layer's name, a Data badge, its unit, and the range of its values, written in the main timeline's dates. Point at the strip and a rule and a dot mark the nearest value, with its date and exact value in the layer's unit, followed by the range around it when the data has one. The strip stays muted until you point at it, and the header's chevron hides its body when you want the room back.

The value axis fits what is on screen. A few faint gridlines with round values at the left show the scale, and as you drag and zoom it adjusts to the values in view, so a small change over a short stretch is as easy to read as a large one over centuries. Each layer opens on its own scale, linear or logarithmic, and the Log button in the header switches it for you; the choice isn't kept in the link. Log is unavailable when any value, or the low end of any range, is zero or below: a logarithmic scale needs every value above zero. The info button in a strip's header, or the layer's name, opens About this data layer: the whole series as a chart with the view you are looking at shaded on it, then its description, scale and sources. Where you can change the layer, it also offers Open in the dashboard.

When the ranges don't meet

The view keeps to the main timeline's range, so a layer whose values all lie outside it draws nothing. Its strip then says Outside this timeline's range, with a Widen the view to include it button: the view then reaches every strip's range and zooms out to show them all. A layer that is in reach but has no values where you are looking says Nothing between, with the dates on screen, and Show its range zooms to its values. If you are looking at a gap between two of its points, the line is drawn dashed and the strip says No points between, with the dates on screen. A layer with no values at all says No points yet.

To keep the view to the main timeline again, open Add context and clear Let the view span the context too. The choice lives in the address along with the context, and removing the last timeline or data layer clears it.

Data layers live in the address of the page, beside any context timelines, not in the timeline. Nothing is saved: the timeline looks the same to everyone who opens it without your link. To show someone the same view, send them the address from your browser. They see the same strips, for the layers they may read: anyone can read Timescrolly's own, a layer of yours only you, and a team's layer only its members. A layer they can't read shows This data layer isn't available, with a header they can remove.

Embeds, booklets, posters and captured images never include data layers. See context timelines for how the rest of the context travels in the link.

Small screens

On a phone held upright, or in a narrow window, the timeline runs from top to bottom, and each data layer is drawn as a narrow rail at the right edge, on the same time axis, with its values as a small line down the rail. Tap the rail to see the date and value of the point nearest your tap, and tap that again to open the layer's sheet; tapping the title along the rail opens it too. The sheet offers Use a log scale or Use a linear scale, Widen the view to include it or Show its range, and Remove from context, and Try again when the layer didn't load. The sheet also has an About this data layer row.

Layer rails share the room with context timelines' rails, so a very narrow screen fits fewer of them, as small screens in the context timelines article describes. A data layer can't take the main timeline's place the way a context timeline can.

Make a data layer

Open Data layers in the dashboard's sidebar, after Maps. It has tabs only when you belong to a team or are a site admin: Mine, then Team when you belong to a team, with a menu to choose which one, and Site for the site's admins. Without them, the page shows your own data layers. On Mine and Team, a line above the table counts the layers the set holds against its limit, such as "3 of 5 data layers used". Search finds a layer by name.

New data layer asks for a name and a unit, such as people, ppm or °C, which you can leave empty and fill in later. It creates the layer and opens its page with the import already open, so the next step is to give it points.

Free accounts can hold 5 data layers and 50,000 points across all of them; paid plans, 1,000 data layers and 200,000 points. At the limit, New data layer is greyed out, and deleting a layer makes room again. See plans for the current numbers.

Import points

In the import, paste a table, or choose or drop a .csv, .tsv or .txt file. Lines that start with # are skipped, and so are any other lines above the table; the import says how many of those it skipped. Timescrolly guesses from the headers which column is the date, the value and so on. The dropdowns show its guess, and you can change any of them: Date, Month and Day (Day is available once a Month is chosen), Value, Low and high (None, Two columns, or ± one column) for a range around each value, and, when a column repeats a value, Only rows where … is …, which keeps one kind of row from a file that holds several, such as one country from a table of the world. In Our World in Data files it is already set to World when the file has that value.

A line below the dropdowns says how dates and numbers are read, with up to two switches. Negative years are read as BCE (−500 is 500 BCE) unless the date column has a year 0; the Astronomical years switch, shown when the dates include negative years, overrides the guess, and then 0 is 1 BCE. Comma decimals reads 1.234,5 instead of 1,234.5. Years before present (BP, ka and Ma) and decimal years such as 1958.2027 are read as they are. Rows without a value are left out, and the import counts them.

A chart of what will be imported circles in red the problem rows it can place, such as two rows with the same date or a low and high that don't fit the value. A row whose date or value can't be read can't be drawn, so the import counts those above the chart. A table of the rows follows it, with the reason beside each problem, and Show only problem rows, when there are problems, narrows the table to them. Skip problem rows leaves them out, and Import N points saves the rest. Importing replaces all the points the layer has, and nothing is saved until you confirm. If someone changed the layer's points while you were importing, it asks before replacing them. A table of more than 10,000 rows is refused, with a hint to use Only rows where to import part of it.

The Import points dialog after pasting a table. Problem rows the chart can place are circled in red; the table beneath explains every problem row.

The downloads from Our World in Data, NOAA's Mauna Loa CO₂ record, NASA's GISTEMP temperature table and NOAA's ice-core CO₂ record import as they are, with no editing first.

Fix points

A data layer's page shows a chart of the whole layer, with the same hover readout and Log button as in the viewer, then Details, Sources and a Points table. Add point asks for a date, a value and, if you like, a low and a high; each row has Edit and Delete. Edit details, Import points and the ⋯ menu, which holds Delete, are at the top of the page.

If someone else changed the points since you opened the page, your change isn't saved: the table refreshes to show their version, and Save again applies your change on top of it. If the row you were editing was removed in the meantime, Add it as a new point puts it back.

Details and sources

Edit details changes the name, the unit, the description, whether the points are joined by Straight lines or Steps, and the scale the layer opens on, linear or logarithmic. Under Citations you cite sources from the owner's source library, as you would for an item; the page then lists them under Sources. In that library, a source's Cited by lists the data layers that cite it along with its other uses.

Who can change a layer

Your own layers are yours to change. A team's layers can be changed by its owners, admins and contributors, and deleted only by its owners and admins. The site's own layers are for the site's admins. Deleting a layer asks first, and links that still show it say that it isn't available.

Wherever you can change a layer, the viewer offers Open in the dashboard: in the strip's header, in the phone sheet, and when the layer has no points yet.

More in this category

Still stuck?
If this didn't answer your question, tell us what you were trying to do and we'll take it from there.

Ask AI

Answers come from the help centre and can be wrong.

Timescrolly does NOT keep your conversations.