Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install python-nvd3

How to install python-nvd3

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install python-nvd3
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.8.0 Available View build log
Linux (64-bit)
0.8.0 Available View build log
0.8.0 Available View build log
 
License
MIT license
Dependencies
Depended by
Imports
Lastest release
version 0.8.0 on Aug 18th, 2013

NVD3 is an attempt to build re-usable charts and chart components for d3.js without taking away the power that d3.js gives you.

https://www.travis-ci.org/areski/python-nvd3.png?branch=master

endorse

Installation

Install, upgrade and uninstall python-nvd3 with these commands:

$ pip install python-nvd3
$ pip install --upgrade python-nvd3
$ pip uninstall python-nvd3

Usage

After installation use python-nvd3 as follows

from nvd3 import pieChart

#Open File to write the D3 Graph
output_file = open('test-nvd3.html', 'w')

type = 'pieChart'
chart = pieChart(name=type, color_category='category20c', height=450, width=450)
chart.set_containerheader("\n\n<h2>" + type + "</h2>\n\n")

#Create the keys
xdata = ["Orange", "Banana", "Pear", "Kiwi", "Apple", "Strawberry", "Pineapple"]
ydata = [3, 4, 0, 1, 5, 7, 3]

#Add the serie
extra_serie = {"tooltip": {"y_start": "", "y_end": " cal"}}
chart.add_serie(y=ydata, x=xdata, extra=extra_serie)
chart.buildhtml()
output_file.write(chart.htmlcontent)

#close Html file
output_file.close()

See the file examples.py for more samples.

Live demo of NVD3

See a live demo on jsfiddle : http://jsfiddle.net/areski/z4zuH/3/

Supported nvd3 charts

Charts list:

https://raw.github.com/areski/python-nvd3/master/docs/source/_static/screenshot/lineWithFocusChart.png https://raw.github.com/areski/python-nvd3/master/docs/source/_static/screenshot/lineChart.png https://raw.github.com/areski/python-nvd3/master/docs/source/_static/screenshot/multiBarChart.png https://raw.github.com/areski/python-nvd3/master/docs/source/_static/screenshot/pieChart.png https://raw.github.com/areski/python-nvd3/master/docs/source/_static/screenshot/stackedAreaChart.png https://raw.github.com/areski/python-nvd3/master/docs/source/_static/screenshot/multiBarHorizontalChart.png https://raw.github.com/areski/python-nvd3/master/docs/source/_static/screenshot/linePlusBarChart.png https://raw.github.com/areski/python-nvd3/master/docs/source/_static/screenshot/cumulativeLineChart.png https://raw.github.com/areski/python-nvd3/master/docs/source/_static/screenshot/discreteBarChart.png https://raw.github.com/areski/python-nvd3/master/docs/source/_static/screenshot/scatterChart.png

Documentation

Documentation is available on 'Read the Docs': http://python-nvd3.readthedocs.org

Like Django ?

We love Django too and we made available a django wrapper for nvd3: https://github.com/areski/django-nvd3

License

Python-nvd3 is licensed under MIT, see MIT-LICENSE.txt.

Subscribe to package updates

Last updated Aug 18th, 2013

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.