GithubHelp home page GithubHelp logo

pineappleufo / react-gantt-chart-n Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nikitasmiththeone/react-gantt-chart

0.0 0.0 0.0 1.68 MB

React gantt chart library with typescript ๐Ÿ’ฅ๐Ÿ’ฅ๐Ÿ’ฅ

Home Page: https://react-gantt-chart.vercel.app

License: MIT License

JavaScript 0.73% TypeScript 98.06% CSS 0.19% HTML 1.02%

react-gantt-chart-n's Introduction

Logo

react-gantt-chart

npm NPM GitHub Workflow Status (branch) GitHub Workflow Status (branch) GitHub Workflow Status (branch)

React-Gantt-Chart allows you to create custom gantt charts with ease. No more nonsense!

Installation

npm install --save react-gantt-chart
yarn add react-gantt-chart
pnpm add react-gantt-chart

Features

  • Easy to set up for real
  • Super easy to customize ๐Ÿ”ฅ
  • RTL support
  • Easy to create your own templates
  • Small bundle size
  • Support ESM and CJS
  • Zero dependencies
  • And much more!

The gist

import React from "react";
import { GanttOriginal, Task, ViewMode } from "react-gantt-chart";

const App = () => {
	const [tasks] = React.useState<Task[]>([
		{
			type: "project",
			id: "ProjectSample",
			name: "1.Project",
			start: new Date(2021, 6, 1),
			end: new Date(2021, 9, 30),
			progress: 25,
			hideChildren: false,
		},
		{
			type: "task",
			id: "Task 0",
			name: "1.1 Task",
			start: new Date(2021, 6, 1),
			end: new Date(2021, 6, 30),
			progress: 45,
			project: "ProjectSample",
		},
		{
			type: "task",
			id: "Task 1",
			name: "1.2 Task",
			start: new Date(2021, 7, 1),
			end: new Date(2021, 7, 30),
			progress: 25,
			dependencies: ["Task 0"],
			project: "ProjectSample",
		},
		{
			type: "task",
			id: "Task 2",
			name: "1.3 Task",
			start: new Date(2021, 6, 1),
			end: new Date(2021, 7, 30),
			progress: 10,
			dependencies: ["Task 1"],
			project: "ProjectSample",
		},
		{
			type: "milestone",
			id: "Task 6",
			name: "1.3.1 MileStone (KT)",
			start: new Date(2021, 6, 1),
			end: new Date(2021, 6, 30),
			progress: 100,
			dependencies: ["Task 2"],
			project: "ProjectSample",
		},
	]);

	return (
		<GanttOriginal
			tasks={tasks}
			viewMode={ViewMode.Month}
			columnWidth={200}
			ganttHeight={200}
		/>
	);
};

export default App;

So easy! Is not it? โœจ

โ—โ—โ— Important Note: The package is not production ready yet! I believe within close future it'll be ready so now you can try this out and share your feedback. Thanks!

Demo

A demo is worth a thousand words

Storybook

Check the storybook to see all components!

Contributing

Contributions are always welcome! Show your โค๏ธ and support by giving a โญ.

Take a look at the contributing guide:

  • Fork the repository
  • Run scripts
npm i
npm run lib:build -- -w
npm run lib:link
npm run start # check examples
npm run storybook # check storybook

So now you are ready to make the world better place!

Roadmap

  • Make more built-in gantt chart templates
  • Simplify some components props and make the ones memoized

Release Notes

You can browse them all here

License

Licensed under MIT

Authors

Alternative Logo

Logo

react-gantt-chart-n's People

Contributors

nikitasmiththeone avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.