Hyper Vue Gantt

5.2.0 · active · verified Sun Apr 19

Hyper Vue Gantt is a robust and highly customizable Gantt chart component specifically engineered for Vue 3 applications. As an evolution of the `vue-ganttastic` package, it has been completely rewritten in TypeScript, offering enhanced type safety and developer experience. The current stable version is 5.2.0, with an active release cadence, demonstrating frequent updates and new feature additions. Key differentiators include comprehensive time management with multi-precision support, advanced task dependency visualization, interactive progress tracking, hierarchical grouping, full touch and mobile responsiveness, and a rich customization system with 11 built-in themes and extensive slots. It also provides advanced data management features like export options (PDF, PNG, SVG, Excel), import support (CSV, Jira JSON), built-in undo/redo, and real-time updates.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates the basic installation as a Vue plugin, global registration, and the fundamental usage of `GGanttChart` and `GGanttRow` components with reactive data for displaying a simple Gantt chart.

import { createApp, ref } from "vue"
import App from "./App.vue"
import hyvuegantt from "hy-vue-gantt"
import type { ChartRow } from "hy-vue-gantt"

const app = createApp(App)
app.use(hyvuegantt)

app.mount("#app")

// In your App.vue or a component
// <template>
//   <g-gantt-chart
//     :chart-start="chartStart"
//     :chart-end="chartEnd"
//     :precision="precision"
//     :bar-start="barStart"
//     :bar-end="barEnd"
//     color-scheme="vue"
//     grid
//     commands
//   >
//     <g-gantt-row
//       v-for="row in rows"
//       :key="row.id"
//       :label="row.label"
//       :bars="row.bars"
//     />
//   </g-gantt-chart>
// </template>

// <script setup lang="ts">
// const chartStart = ref("2024-01-01")
// const chartEnd = ref("2024-12-31")
// const precision = ref("day")
// const barStart = ref("start")
// const barEnd = ref("end")

// const rows = ref<ChartRow[]>([
//   {
//     id: 1,
//     label: "Design Phase",
//     bars: [
//       {
//         start: "2024-01-05",
//         end: "2024-01-20",
//         ganttBarConfig: {
//           id: "1",
//           label: "UI Design",
//           style: { background: "#42b883" }
//         }
//       }
//     ]
//   }
// ])
// </script>

view raw JSON →