@sk1426 wrote:
Hey,
I am trying to use an external script on local computer which makes my custom graph. The script uses d3 and makes the chart.
In my dash, I’ve added 2 separate tabs for using Plotly charts and the other tab for the d3 chart.
I’ve added the script to assets folder along with d3.js and d3.min.js but I don’t get any chart but just the content that I added in the tab.The script works by taking the ID of the div and it makes chart in it using that ID. When I do inspect element, it shows the correct ID of the div.
On running the python script, the Plotly charts works perfectly but there is an error which pop up: Failed to load the resource: Could not connect to the server.I have also added d3 using external script but it still doesn’t work.
How can I make the d3 javascript file work?
So far I have tried:
html.Div([ html.Div(id="chart"), html.H1("This is the content in tab 2"), html.P("A graph here would be nice!") ]) ]),
Which shows the content in H1 and P but chart is not created. Also, in sources I can see that all the js files are loaded.
Posts: 1
Participants: 1