gantt icon indicating copy to clipboard operation
gantt copied to clipboard

Can I add fields/columns to the chart?

Open AndrewSithole opened this issue 4 years ago • 8 comments

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

AndrewSithole avatar Aug 29 '20 07:08 AndrewSithole

Yes, please, how can this be done?

maudrid avatar Sep 03 '20 06:09 maudrid

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

Thank you!

Peter-Pear avatar Nov 24 '20 12:11 Peter-Pear

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

William-Wildridge avatar May 22 '21 16:05 William-Wildridge

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

AndrewSithole avatar Oct 05 '21 15:10 AndrewSithole

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 : )

William-Wildridge avatar Oct 05 '21 15:10 William-Wildridge

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

PeterPaulG avatar Jan 06 '22 11:01 PeterPaulG

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.

AndrewSithole avatar Jan 09 '22 07:01 AndrewSithole

@AndrewSithole can we have an exemples please ?

Igore-ADJOTIN avatar May 20 '22 18:05 Igore-ADJOTIN

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

safwansamsudeen avatar Apr 05 '24 11:04 safwansamsudeen