项目作者: nileshdattatraykedare

项目描述 :
D3 Stacked Bar Chart and Python api
高级语言: JavaScript
项目地址: git://github.com/nileshdattatraykedare/d3js-python-app.git
创建时间: 2019-01-27T21:00:37Z
项目社区:https://github.com/nileshdattatraykedare/d3js-python-app

开源协议:MIT License

下载


D3 Chart and Python powered backend app to display d3 chart

  • Simple Frontend that produces stacked bar chart using D3 (d3js.org) and jquery (jquery.com)

  • API to fetch chart data

core Dependencies

  • Python 3
  • pipenv
  • flask
  • D3
  • Datasource is sample.json

Installation of packages and dependencies

pipenv install

curl -X GET \
http://localhost:5000/get_chart_data \
-H ‘Content-Type: application/json’ \
-H ‘cache-control: no-cache’

Chart loads at following page:

http://localhost:5000/

command

python app.py

screenshot attached

alt text