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

Can I add fields/columns to the chart? #195

Closed
AndrewSithole opened this issue Aug 29, 2020 · 9 comments
Closed

Can I add fields/columns to the chart? #195

AndrewSithole opened this issue Aug 29, 2020 · 9 comments

Comments

@AndrewSithole
Copy link

How can I add columns to the chart like "id" and "label" in the image below. Is this possible?

Screenshot 2020-08-29 at 09 26 15

@maudrid
Copy link

maudrid commented Sep 3, 2020

Yes, please, how can this be done?

@Peter-Pear
Copy link

I would really like someone could lead the way to implement this.

Thank you!

@William-Wildridge
Copy link

@AndrewSithole did you ever find a good workaround for this?

@AndrewSithole
Copy link
Author

Yes. Sorry for the long silence. I went into the JS and edited the functions that create the SVGs. Its not the best workaround for large charts but it works fine for my case. Happy to share the code if you're still interested

@William-Wildridge
Copy link

Thank you Andrew, I personally ended up going with FullCalendar with allows for custom resources, but I am sure other folks would find your solution handy : )

@PeterPaulG
Copy link

@AndrewSithole would you share your solution with us? I could definitely need it for my project.
Thank you very much.

@AndrewSithole
Copy link
Author

I have added my code here: https://github.com/AndrewSithole/gantt. Its not yet good enough for me to create a pull request but its usable with very few modifications.

Its important to note that in its current state, you'll need to define a columns array when you instantiate the chart.

@Igore-ADJOTIN
Copy link

Igore-ADJOTIN commented May 20, 2022

@AndrewSithole can we have an exemples please ?

@safwansamsudeen
Copy link
Contributor

Thanks folks - I've opened the extended issue #389.

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

No branches or pull requests

7 participants