I have started working and exploring Deneb and I got a Gantt chart. I want to limit the width of data label like it should restrict the data label to the size of the bar and it should not cross the range of the data bar like in the below snapshot. I am attaching the pbix file. Can anyone please check and play around a bit to see if I can adjust the data labels?
You can use the “limit” property of the text mark to restrict the length, but a simple implementation will affect all text values, which is not what you want, I’m sure.
I’d guess that more date parsing might be necessary such that, say, a “_duration_in_hours” field might be created, and then used in the “limit” property … here’s a placeholder example that may be of some use:
I’m glad it wortked-out for you. For reference, could you please post the PBIX (and/or full JSON code) you came up with so that others can see your method of retrieving the start and end X co-ordinates?
We’ve noticed that no response has been received from you on Greg’s request to share your PBIX (and/or full JSON code) you came up with to solve your inquiry.
Just like Greg, we believe that sharing your method with the community would be very beneficial. Many others may be facing similar challenges and could benefit from your insights.
I understand that you may be busy, but if you could take a few moments to share your PBIX (and/or full JSON code), it would be greatly appreciated.
Thank you for considering this request, and I look forward to hearing back from you soon.