Skip to main content

Simple tag abstraction for jquery sparklines

Project description

Django Sparklines

This is a simple template tag abstraction to jquery sparklines. Simple graphs useful for basic activity trends.

http://omnipotent.net/jquery.sparkline/

Screenshot Here

http://www.ascetinteractive.com.au/images/django-sparkline.png

INSTALL

settings.py

‘sparklines’, in INSTALLED_APPS

{% load sparkline_tags %}

Included is three tags

{% sparklines_script_tag %}

<script src=’..jquery’> tags for the <head>

{% sparkline list [dict options]%}

will take a list of integers

see http://omnipotent.net/jquery.sparkline/#common for options

{% queryset_sparkline queryset date_field [dict options, date start, date end, int step, str mode] %}

will take a queryset and model.date_field string and plot frequency of records. A simple example would be plotting auth.User by date_joined.

By default it will render frequency for the last 52 weeks.

Example: {% queryset_sparkline users ‘date_joined’ %} where users is User.objects.all()

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

django-sparklines-0.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file django-sparklines-0.1.tar.gz.

File metadata

File hashes

Hashes for django-sparklines-0.1.tar.gz
Algorithm Hash digest
SHA256 fe71dea88a15ff43d0fb17f5127c21dd4858241e0097f208d31755f68df788e6
MD5 8fe8f9c41e060e0ec2e923e0c0601602
BLAKE2b-256 b356c4cf168a26dfd3c1740ac1f717cd2c750f2fea08ab866e9b297e5539129c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page