Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom color in different tasks when using in ReactJs #321

Open
khanzzirfan opened this issue Apr 14, 2023 · 0 comments
Open

Custom color in different tasks when using in ReactJs #321

khanzzirfan opened this issue Apr 14, 2023 · 0 comments

Comments

@khanzzirfan
Copy link

Reposting same old issue, when using reactjs.
When color is picked up via colorizer component, the hex value maybe different which is not predefined in the css classes. as far Reactjs everything works as Props on each update, the value changes. Hence we cannot predefine classes in React app.
I would suggest would add color prop and accepts the Hex code.

Just an idea that good to have some custom color input for different tasks like below.
This will help user to view chart as multiple or group tasks more clearly.

let tasks = [
{
id: 'Task 1',
name: 'Redesign website',
color: '#ff0033',
start: '2018-7-1',
end: '2018-7-30',
progress: 20,
},
{
id: 'Task 2',
name: 'website 2',
color: '#ff0033',
start: '2018-7-05',
end: '2018-7-15',
progress: 80,
dependencies: 'Task 1'
},
{
id: 'Task 3',
name: 'website 3',
color: '#ffff33',
start: '2018-7-10',
end: '2018-7-20',
progress: 50,
dependencies: 'Task 2'
},
{
id: 'Task 4',
name: 'website 4',
color: '#ff0066',
start: '2018-7-10',
end: '2018-7-20',
progress: 50,
dependencies: 'Task 2'
},
{
id: 'Task 5',
name: 'website 5',
color: '#ff00ff',
start: '2018-7-10',
end: '2018-7-20',
progress: 50,
dependencies: 'Task 2'
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant