开发者

Defining ways to visualise admin fields - Django

开发者 https://www.devze.com 2022-12-28 22:30 出处:网络
I\'m trying to add graphs to the admin interface, problem is that I have not found any documentation regarding this.

I'm trying to add graphs to the admin interface, problem is that I have not found any documentation regarding this.

I'm sure there are generally accepted ways of customizing the way fields are displayed, and I do not wish to follow an开发者_如何转开发y problematic route.


Any ideas?


Edit:

this is a model I'm trying to reproduce!

Unicorn: name, horn length (cm), daily grass grazed (sparkline), average speed (m/s)

daily grass grazed is a OneToManyField

and this is what I mean by sparkline

Defining ways to visualise admin fields - Django


Here's an example of using Highcharts via the Django admin:

http://blogs.law.harvard.edu/rprasad/2011/08/30/highcharts-django-admin/


Django does not have built in report/graph libraries as far as i know so you should use 3rd party library for generating graphs and customize your admin interface.

See this SO question too.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号