Vue3 Timeline Chart component
npm install vue-timeline-chart
A simple yet versatile vue3 component that allows you to plot points or ranges on a timeline.
You can zoom in/out, scroll horizontally and update content dynamically.
Feel free to report issues, make PR's and start discussions.
- Zooming
- Infinite scrolling _(using native horizontal scroll events, use shift+scroll to convert vertical to horizontal mouse scrolling)_
- Plot ranges, points, markers and backgrounds
- Smooth touch gestures (pinch-to-zoom, up to 2-finger panning)
- Adjustable timestamp labels per scale
- Minimal styling
- Customizable
``sh`
npm add vue-timeline-chart
`ts`
import { Timeline } from 'vue-timeline-chart'
import 'vue-timeline-chart/style.css'
html
:groups="groups"
:items="items"
:markers="markers"
:viewportMin="1691089380000"
:viewportMax="1691101020000"
:minViewportDuration="1000 * 60"
:maxViewportDuration="1000 60 60 24 7"
@mousemoveTimeline="onMousemoveTimeline"
@mouseleaveTimeline="onMouseleaveTimeline"
>
{{ group.label }}
:title="item.title || null"
style="inset: 0; position: absolute;"
>
Development
$3
`
pnpm install
`$3
`
pnpm start
`$3
`
pnpm dev
``