vue-timeline-chart

Vue3 Timeline Chart component
120,196 145
Install
npm install vue-timeline-chart
Latest Version:5.2.0
Vue:3
License:MIT
Last Updated:Oct 13, 2026
Links: GitHub  ·  npm
Maintainer: laurens94

Vue Timeline Chart logo vue-timeline-chart

GitHub release npm version downloads/month license

A simple yet versatile Vue 3 component that allows you to plot points or ranges on a timeline.
Zoom in/out, scroll horizontally and update content dynamically.

Live Demo · Documentation · Report Issue · Discussions


timeline with customized styling


Features

  • Zooming — zoom in and out with scroll or pinch gestures
  • Infinite scrolling — native horizontal scroll events (shift+scroll to convert vertical to horizontal)
  • Flexible data — plot ranges, points, markers and backgrounds
  • Stacking — overlapping items can be dynamically stacked
  • Touch support — smooth pinch-to-zoom and up to 2-finger panning (with momentum)
  • Adjustable labels — timestamp labels adapt per scale
  • Minimal styling — staying out of your way
  • Customizable — use events, slots, methods and CSS variables to adapt to your needs

Getting started

Installation

pnpm add vue-timeline-chart

Setup

import { Timeline } from 'vue-timeline-chart'
import 'vue-timeline-chart/style.css'

Example

<Timeline
  :groups="groups"
  :items="items"
  :markers="markers"
  :viewportMin="1691089380000"
  :viewportMax="1691101020000"
  :minViewportDuration="1000 * 60"
  :maxViewportDuration="1000 * 60 * 60 * 24 * 7"
  @mousemoveTimeline="onMousemoveTimeline"
  @mouseleaveTimeline="onMouseleaveTimeline"
>
  <template #group-label="{ group }">
    {{ group.label }}
  </template>

  <template #item="{ item }">
    <div
      :title="item.title || null"
      style="inset: 0; position: absolute;"
    ></div>
  </template>
</Timeline>

Development

# Install dependencies
pnpm install

# Dev server with live reloading
pnpm start

# Build and watch for changes
pnpm dev

Recommended IDE Setup

VS Code + Volar

Buy Me a Coffee at ko-fi.com

Related Packages

@yamakox/vue3-plotly

A Vue 3 wrapper component for Plotly.js

2,077 1
ag-charts-vue

AG Charts Vue Component

50,857 485
vue-timeline-component

A Vue 3 timeline component powered by D3.js

3,237 27
@incytestudios/ddv

Data Driven Vue - SVG visualizations using Vue3 + Typescript

16,341
@hotdogee/vue3-trend

Simple, elegant spark lines for Vue 3

14,619 0

Version History

Version Released License
5.2.0 MIT
5.1.0 MIT
5.0.2 MIT
5.0.1 MIT
5.0.0 MIT
Pre-releases (2)
Version Released License
5.1.0-beta.0 MIT
5.0.0-beta.0 MIT