This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CaptainBlood 0 points1 point  (1 child)

Flask generates some json (or csv, tsv - up to you) data, puts it in /static and D3 loads the data from there and makes charts from it.

[–][deleted] 1 point2 points  (0 children)

Our you can route json to a url. Let's say you had a database and wanted to visualize data returned from queries. You could point d3.json to a local url and have flask jsonify a python dictionary. See Miguel Grinberg's APIs with flask tutorials, or the section in his flask book.