Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Django app to add highcharts into django admin

Project description


help to add highcharts in django admin

Detailed documentation is in the "docs" directory.

Quick start

1. Add "admin_highcharts" to your INSTALLED_APPS setting like this::

2. add highchart to admin your app model,for example::

your model defined(
class MyStats(models.Model):
stats_date = models.DateField()
pv = models.IntegerField()
uv = models.IntegerField()

admin your model(
from django.contrib import admin
from .models import MyStats
from admin_highcharts.admin import HighchartsModelAdmin,HighchartsModelAdmin,list_display=('stats_date','pv','uv'))

3. advance method in HighchartsModelAdmin::

default -> the first elem in list_display,you can set manual
default -> list_display exclude chart_category_name,you can set manual
default -> line
options: line,column,area,areaspline,spline,
for example:,HighchartsModelAdmin,list_display=('pv','uv','stats_date'),chart_serial_names=('uv',))
class MyStatsAdmin(HighchartsModelAdmin):

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-admin-highcharts, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size django_admin_highcharts-0.1.1-py2.7.egg (155.0 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size django-admin-highcharts-0.1.1.tar.gz (148.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page