vue-ganttasticA 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.
HomepageHomepage of the project
InstallationYou 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 UsageImport the components
g-gantt-chartin your template, pass the desired chart start and chart end time as props (
chart-end) and add
g-gantt-rows to the default template slot. Pass an array containing your bar objects to every row using the
barsprop, 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-endFor 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 ...
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:
Playground.vueis 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