Answer the question
In order to leave comments, you need to log in
How to connect Javascript with Python to display beautiful graphs on the site?
I found some great JavaScript libraries for charting and pivot tables on my site.
All my scripts are in Python. What is the best way to connect them with Javascript? Charts should be updated 1-2 times a day.
Answer the question
In order to leave comments, you need to log in
I load JSON through ajax, and then form an array of data in the format needed for the libraries. In tables, I simply specify the json source. But my data is dynamic and can be loaded separately from the pages. If they do not change, it is easier to generate the same JSON and embed it in the page.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question