-
Notifications
You must be signed in to change notification settings - Fork 194
/
introduction.txt
120 lines (70 loc) · 2.52 KB
/
introduction.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
:Version: |version|
:Date: |today|
:Keywords: python, plot, graph, nvd3, d3
:Author: Arezqui Belaid
:License: MIT
:Description: Python wrapper for nvd3, build re-usable charts and chart components for d3.js
:NVD3: NVD3 http://nvd3.org/
--
.. _python-nvd3-synopsis:
Python-nvd3 is a Python wrapper for NVD3 graph library.
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.
.. _overview:
Overview
========
Python-nvd3 is a Python wrapper for NVD3 graph library.
Visit NVD3 website for futher information : http://nvd3.org/
.. _installation:
Installation
------------
Install, upgrade and uninstall python-nvd3.py 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`::
$ sudo easy_install python-nvd3
.. _usage:
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')
chart_name = 'pieChart'
chart = pieChart(name=chart_name, color_category='category20c', height=450, width=450)
chart.set_containerheader("\n\n<h2>" + type + "</h2>\n\n")
xdata = ["Orange", "Banana", "Pear", "Kiwi", "Apple", "Strawberry", "Pineapple"]
ydata = [3, 4, 0, 1, 5, 7, 3]
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 our examples directory for more usage.
.. _supported_charts:
Supported nvd3 charts
---------------------
See the section Chart Classes.
.. _documentation:
Documentation
=============
Check out the documentation on 'Read the Docs'(http://python-nvd3.readthedocs.org) for some live Chart examples!
.. _changelog:
Changelog
---------
Changelog summary : https://github.com/areski/python-nvd3/blob/master/CHANGELOG.rst
.. _contributing:
Contributing
============
If you've found a bug, add a feature or improve python-nvd3 and
think it is useful then please consider contributing.
Patches, pull requests or just suggestions are always welcome!
Source code: http://github.com/areski/python-nvd3
If you don’t like Github and Git you’re welcome to send regular patches.
Bug tracker: http://github.com/areski/python-nvd3/issues
.. _license:
License
=======
Python-nvd3 is licensed under MIT, see `MIT-LICENSE.txt`.