hi @alex_sam Thank you for your response i tried that as well permissions:
external:
scripts:
- ‘myurlloader.js’
- i can see in the console i am getting error CSP violation detected for ‘script-src-elem’ while serving content at http://localhost:8000/
For an app to share data with external resources or use custom CSP, follow the steps in: https://go.atlassian.com/forge-content-security-and-egress-controls
You said there was a problem with https://www.gstatic.com/charts/loader.js script but you added ‘myurlloader.js’. I do not quite understand why. if you could create an example of your code and push to github and share the repo link, it would be easier to understand.
Sorry for that i think comment was not allowing me to post tow links so i changed it there i am using permissions:
external:
scripts:
- ‘https://www.gstatic.com/charts/loader.js’
scopes:
- read:jira-work
- read:jira-user
content:
scripts:
- ‘unsafe-inline’
styles:
- unsafe-inline
Just want to mention, that there is a chart component planned for Forge UI. It is not released yet, but maybe worth to consider.
Also can highly recommend Vega Lite A High-Level Grammar of Interactive Graphics | Vega-Lite as a Javascript data visualization library, where you can define the layout and functionality of your visualization via config JSON.
Hello sir @Holger i was going through the documentation of Vega Lite it has a lot of data visualization charts. i was looking for a library where i could make a Gantt chart like jira timeline i think Vega lite doesnt have a built-in component for that.
Yes, Vega lite does not have a default Gantt chart. But a simple Gantt chart example with start and end date you can find here. It is basically a horizontal bar chart with defined start and end value. You can easily add color.
And I didn’t found and example for dependencies between activities, critical path throughout activities and expand/collapse of sub-activities. Would be some more complex code to create in Vega Lite and I didn’t found an example.