Displaying graphs using Django-graphos

≯℡__Kan透↙ 提交于 2019-12-06 05:52:53

I don't know anything about Django-graphos, so this is a WAG, but try:

 chart = flot.BarChart(data_source, options={'title': "Website", 'xaxis': {'mode': "categories"}})
satyaakam

What platform are you trying this on ? Have you tried running the demo site from graphos available on github ?

to run the Demo site

  1. go to/django-graphos/demo_project/demo_project/settings/
  2. $cp local.py-dist local.py
  3. Change your directory to /django-graphos/demo_project/
  4. $pip install -r requirements.txt
  5. run the local server by going to go to /django-graphos/demo_project/
  6. $python manage.py runserver
  7. check the demo by visiting localhost:8000 in your browser.

This will give you fairly good idea how Django-graphos can be used, if you face any issues do ask.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!