For a Splunk project we are using a Gantt chart. It's contained in a "Splunk App" that can be used for free. It consists of a d3.js script that draws the Gantt chart.
We need additional code in this script for a text overlay on all rectangles that make up the Gantt chart. From what we know, it's not possible to add text to the rectangle, however it would be possible to add separate text objects and position those such that rectangle and text are aligned.
The code to be added to the attached script has to use the coordinates of each rectangle to add the text contained in variable [login to view URL] (ref line 244 in script) to each rectangle. The text in [login to view URL] is now shown as tooltip, ref. line 392/393 of script, maybe that helps.
Testing is probably not possible for you, just send us the file and we will run it on our server.
Hello.
I'm a JavaScript and HTML5 expert with experience in creating interactive applications with maps, charts, graphs and animations (see my portfolio for examples of my work). I have experience working with various JS libraries (including D3). Please attach a screenshot or a link of the working chart, so that I have a better idea of the project objective. Will the JS file display the chart if I attach it to an empty HTML file?
Regards.