A simple and customizable Gantt chart component for Vue.js

Downloads in past


303280.9.34a year ago3 years agoMinified + gzip package size for vue-ganttastic in KB


A simple and easy-to-use Gantt chart component for Vue.js Using Vue 3? Check out the Vue-Ganttastic v2 and the corresponding npm package.


Homepage of the project


You can install and use Vue-Ganttastic in your project using npm: ``` npm install vue-ganttastic ``` Moment.js is a peer-dependency of Vue-Ganttastic. In order for Vue-Ganttastic to work correctly, you need to install it in your project: ``` npm install moment ```

Basic Usage

Import the components GGanttChart and GGanttRow. Use g-gantt-chart in your template, pass the desired chart start and chart end time as props (chart-start and chart-end) and add g-gantt-rows to the default template slot. Pass an array containing your bar objects to every row using the bars prop, while specifying the name of the properties in your bar objects that stand for the bar start and bar end time using the props bar-start and bar-end For more detailed information, such as how to style the bars or additional configuration options, please refer to the docs on the project's homepage (coming soon). The following code showcases a simple usage example in a .vue SFC (Single File Component) ```html ... :chart-start="myChartStart"
v-for="row in rows"
... ```

Contributing (run and build project)

1. Clone the project 2. Install the Vue CLI service, if you don't already have it installed:
npm install -g @vue/cli
npm install -g @vue/cli-service-global
3. Install all dependencies:
npm install
3. Playground.vue is a dedicated Vue SFC where all Vue-Ganttastic features can be
played around with and tested out. Get it running using:
vue serve src/Playground.vue
4. To build the project:
npx bili --bundle-node-modules