Skip to main content

Python NVD3

Project description

Description:Python-nvd3 is a wrapper for NVD3 graph library
nvd3:for futher information on nvd3 :
d3:Data-Driven Documents

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.


Install, upgrade and uninstall with these commands:

$ sudo pip install python-nvd3

$ sudo pip install --upgrade python-nvd3

$ sudo pip uninstall python-nvd3

Or if you don’t have pip, use easy_install to install python-nvd3:

$ sudo easy_install python-nvd3


After installation use python-nvd3 as follow

import nvd3

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

chart = nvd3.pieChart(name="pieChart", height=450, width=450)
#Create the keys
xdata = ["Orange", "Banana", "Pear", "Kiwi", "Apple", "Strawberry", "Pineapple"]
#Set a value for each key
ydata = [3, 4, 0, 1, 5, 7, 3]

#Add the serie
chart.add_serie(y=ydata, x=xdata)

output_file.write("<h2> pieChart Graph </h2>")

#close Html file

See the file for more samples.


Supported graph

Currently implemented nvd3 chart:

  • lineWithFocusChart
  • lineChart
  • multiBarChart
  • pieChart


Documentation is available on ‘Read the Docs’:


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

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
python-nvd3-0.1.1.tar.gz (6.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page