Skip to content

shadcn.io is an independent project built on shadcn/ui

Line Chart with Zoom and Pan

A year of daily users to zoom with Ctrl or Cmd and the wheel, then pan by dragging. This is the Vue version, drawn with TanStack Charts.

Charting library: TanStack Charts

Preview

Preview width

Installation

Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.
Use email insteadNo credit card

Usage

<script setup lang="ts">
import ChartLineZoom from "@/components/charts/chart-line-zoom.vue";
</script>
<template>
  <ChartLineZoom />
</template>