HOSTING

Share an interactive timeline as a link with vis-timeline

vis-timeline draws events, date ranges and milestones on a timeline that viewers can scroll and zoom. Put the stylesheet, one script tag and your events in one HTML file, upload it, and send a link.

4 min read·

A history of a project, a product roadmap or a list of events in a case reads best as a timeline. A slide or a screenshot of one cannot be zoomed, and a timeline inside a paid tool only opens for people with a seat.

vis-timeline is a JavaScript library that draws dated items on a horizontal axis. Viewers drag to scroll and use the mouse wheel or a pinch to zoom. One HTML file, hosted at a link, opens as that timeline in any browser.

Build the timeline in one file

Create timeline.html with this structure:

  • ✓<!doctype html>, <meta charset="utf-8"> and <meta name="viewport" content="width=device-width, initial-scale=1"> in the head.
  • ✓The stylesheet: https://cdn.jsdelivr.net/npm/vis-timeline@8.5.6/styles/vis-timeline-graph2d.min.css.
  • ✓One script tag with a pinned version: https://cdn.jsdelivr.net/npm/vis-timeline@8.5.6/standalone/umd/vis-timeline-graph2d.min.js. The standalone build bundles what it needs and defines a global named vis.
  • ✓An empty <div id="timeline"></div> in the body.
  • ✓Your events after the div: const items = new vis.DataSet([ { id: 1, content: "Kickoff", start: "2026-12-01" }, { id: 2, content: "Design", start: "2026-12-02", end: "2026-12-12" }, { id: 3, content: "Launch", start: "2026-12-20", type: "point" } ]);
  • ✓The call that draws it: new vis.Timeline(document.getElementById("timeline"), items, {});
  • ✓Tested on vis-timeline 8.5.6 in Chrome: those three items drew one box, one range bar and one point.

What the item fields do

An item with only start draws as a box with a line down to the axis. Add end and it becomes a bar across the date range. type: "point" draws a dot with the label beside it, which suits milestones. content can hold plain text or a short piece of HTML.

Items are read-only by default: in the 8.5.6 test, viewers could scroll and zoom but not drag or delete an item. Editing only turns on if you pass an editable option, and even then changes stay in the viewer's own browser.

If the script runs before the div exists, nothing draws. In testing, passing a missing element threw "Cannot read properties of null (reading 'style')", visible in the browser console. Put the script after the div.

Need task bars with dependency arrows instead? See sharing a Gantt chart as a link. Prefer writing the timeline as text? Mermaid has a timeline diagram: sharing a Mermaid diagram as a link.

Upload it and send the link

Drag the .html file onto the FileShare Pro dashboard and copy the link. The timeline opens in the browser, and viewers need no account.

Turn on comments and readers can leave a note on the page after typing a name, such as a date that looks wrong. When events change, upload the new file over the old one and the link stays the same: updating a shared link without changing it.

Check whether someone opened your link from the view count on the dashboard.

Frequently asked

How do I share an interactive timeline without a timeline tool account?

Build the timeline as one HTML file with vis-timeline, upload it to a host that serves HTML as a web page, and send the link. Viewers open it in a browser with no account.

Can viewers move or delete events?

Not by default. vis-timeline items are read-only unless you set an editable option, and any change a viewer makes stays in their own browser.

How do I mark a milestone instead of a range?

Give the item only a start date and type: "point". Items with both start and end draw as bars.

Is it free?

Yes. The free plan hosts up to 50 files of up to 100 MB each, with view counts and comments included. Password-protected links are on Pro.

Got a page to share?

Drop the file, copy the link — live in seconds, free plan included.

Start sharing free