O
O
Oleg Petrov2018-10-26 00:56:12
Python
Oleg Petrov, 2018-10-26 00:56:12

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

2 answer(s)
A
Alexander, 2018-10-26
@Smeilz1

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.

N
Nick V, 2018-10-26
@half-life

You can try this tool - https://plot.ly/products/dash/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question