Skip to main content

About

The plugin provides an easy way to insert non-shophisticated function graphs to django-cms driven websites.

More detailed docs with examples are available here.

Requirements

The plugin works under Python 2.7+ and Python 3.4+ with all versions of Django supported by Django-CMS. The following libraries (along with those required by django-CMS) are required:

  • Django >= 1.5, <=1.9

  • django-cms >= 2.4, <=3.2

  • python-nvd3 (tested with 0.14.2)

Installation

It is assumed that django-cms is already installed.

$ pip install python-nvd3
$ pip install cmsplugin-nvd3

Insert the plugin app in your settings.py

INSTALLED_APPS = [
    # ...
    'cmsplugin_nvd3',
        #...
]

Create necessary database tables:

manage.py migrate cmsplugin_nvd3

The plugin can be used in a single manner or embedded into text plugins.

Configuration

Behaviour of the plugin is controlled by the following settings (defaults are listed below):

# Value separator for x-data
CMSNVD3_DATASEP = ','

# Group separator for y-series
CMSNVD3_YDATAGROUPSEP = ';'

# Length of random part of id
CMSNVD3_ID_RANDOM_LENGTH = 7

# Container prefix; used only if <container name> field in the model is left empty.
CMSNVD3_CONT_ID_PREFIX = 'nvd3id_'

# Default container width;
CMSNVD3_CONT_WIDTH = 600

# Default container height;
CMSNVD3_CONT_HEIGHT = 400

# Maximum allowed container size; all values of width or height will be
# reduced to defaults if they exceed this value
CMSNVD3_MAX_CONT_DIM = 3000

# D3, NVD3 sources.
CMSNVD3_D3JS_SOURCE = '//cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js'
CMSNVD3_JS_SOURCE = '//cdn.rawgit.com/novus/nvd3/v1.8.1/build/nv.d3.min.js'
CMSNVD3_CSS = '//cdn.rawgit.com/novus/nvd3/v1.8.1/build/nv.d3.css'
# If one or all of these constants was set up to 'local' (e.g. CMSNVD3_CSS='local'),
# the static resource(s) will be loaded via path CMSNVD3_URL

#a path for d3, nvd3 static files, defined as: STATIC_URL+CMSNVD3_URL
CMSNVD3_URL = 'nvd3plugin/'

#Floating point delimiter. You probably will never need to change it.
CMSNVD3_FLT_DELIMITER = '.'

Metadata

Release files for cmsplugin-nvd3 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cmsplugin-nvd3 0.5.2
File Size Uploaded Provenance Actions
cmsplugin-nvd3-0.5.2.tar.gz 110.7 kB Without provenance Details for cmsplugin-nvd3-0.5.2.tar.gz

Release files / cmsplugin-nvd3-0.5.2.tar.gz

Download URL cmsplugin-nvd3-0.5.2.tar.gz
Size 110.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d9bdd39c1d574c7f9cc38cbf5512986f547fcfb5ad8a74555eb85cfadaebaba4
BLAKE2b-256 checksum
How to use checksums
932a6fa8bb0afef7b7adfd86af592bdc2c09e628494215f2914b00449b61043e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for cmsplugin-nvd3 0.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page