METADATA 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. Metadata-Version: 2.4
  2. Name: python-nvd3
  3. Version: 0.16.0
  4. Summary: Python NVD3 - Chart Library for d3.js
  5. Home-page: http://github.com/areski/python-nvd3
  6. Author: Belaid Arezqui
  7. Author-email: areski@gmail.com
  8. License: MIT
  9. Keywords: plot,graph,nvd3,d3
  10. Classifier: Development Status :: 5 - Production/Stable
  11. Classifier: Environment :: Console
  12. Classifier: Intended Audience :: Developers
  13. Classifier: License :: OSI Approved :: MIT License
  14. Classifier: Operating System :: OS Independent
  15. Classifier: Programming Language :: Python
  16. Classifier: Programming Language :: Python :: 2
  17. Classifier: Programming Language :: Python :: 2.7
  18. Classifier: Programming Language :: Python :: 3
  19. Classifier: Programming Language :: Python :: 3.3
  20. Classifier: Programming Language :: Python :: 3.4
  21. Classifier: Programming Language :: Python :: 3.5
  22. Classifier: Programming Language :: Python :: 3.6
  23. Classifier: Programming Language :: Python :: 3.7
  24. Classifier: Programming Language :: Python :: 3.8
  25. Classifier: Programming Language :: Python :: 3.9
  26. Classifier: Programming Language :: Python :: 3.10
  27. Classifier: Programming Language :: Python :: 3.11
  28. Classifier: Programming Language :: Python :: 3.12
  29. Classifier: Topic :: Multimedia :: Graphics :: Presentation
  30. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  31. License-File: LICENSE
  32. Requires-Dist: python-slugify>=1.2.5
  33. Requires-Dist: Jinja2>=2.8
  34. Dynamic: author
  35. Dynamic: author-email
  36. Dynamic: classifier
  37. Dynamic: description
  38. Dynamic: home-page
  39. Dynamic: keywords
  40. Dynamic: license
  41. Dynamic: license-file
  42. Dynamic: requires-dist
  43. Dynamic: summary
  44. Python Wrapper for NVD3 - It's time for beautiful charts
  45. ========================================================
  46. :Description: Python-nvd3 is a wrapper for NVD3 graph library
  47. :NVD3: NVD3 http://nvd3.org/
  48. :D3: Data-Driven Documents http://d3js.org/
  49. :Maintainers: Areski_ & Oz_
  50. :Contributors: `list of contributors <https://github.com/areski/python-nvd3/graphs/contributors>`_
  51. .. _Areski: https://github.com/areski/
  52. .. _Oz: https://github.com/oz123/
  53. .. image:: https://coveralls.io/repos/areski/python-nvd3/badge.png?branch=develop
  54. :target: https://coveralls.io/r/areski/python-nvd3?branch=develop
  55. .. image:: https://img.shields.io/pypi/v/python-nvd3.svg
  56. :target: https://pypi.python.org/pypi/python-nvd3/
  57. :alt: Latest Version
  58. .. image:: https://img.shields.io/pypi/dm/python-nvd3.svg
  59. :target: https://pypi.python.org/pypi/python-nvd3/
  60. :alt: Downloads
  61. .. image:: https://img.shields.io/pypi/pyversions/python-nvd3.svg
  62. :target: https://pypi.python.org/pypi/python-nvd3/
  63. :alt: Supported Python versions
  64. .. image:: https://img.shields.io/pypi/l/python-nvd3.svg
  65. :target: https://pypi.python.org/pypi/python-nvd3/
  66. :alt: License
  67. NVD3 is an attempt to build re-usable charts and chart components
  68. for d3.js without taking away the power that d3.js offers you.
  69. Python-NVD3 makes your life easy! You write Python and the library
  70. renders JavaScript for you!
  71. These graphs can be part of your web application:
  72. .. image:: https://raw.githubusercontent.com/areski/python-nvd3/develop/docs/showcase/multiple-charts.png
  73. Want to try it yourself? Install python-nvd3, enter your python shell and try this quick demo::
  74. >>> from nvd3 import pieChart
  75. >>> chart_name = 'pieChart'
  76. >>> chart = pieChart(name=chart_name, color_category='category20c', height=450, width=450)
  77. >>> xdata = ["Orange", "Banana", "Pear", "Kiwi", "Apple", "Strawberry", "Pineapple"]
  78. >>> ydata = [3, 4, 0, 1, 5, 7, 3]
  79. >>> extra_serie = {"tooltip": {"y_start": "", "y_end": " cal"}}
  80. >>> chart.add_serie(y=ydata, x=xdata, extra=extra_serie)
  81. >>> chart.buildcontent()
  82. >>> print chart.htmlcontent
  83. This will output the following HTML to render a live chart. The HTML could be
  84. stored into a HTML file, used in a Web application, or even used via Ipython Notebook::
  85. <div id="pieChart"><svg style="width:450px;height:450px;"></svg></div>
  86. <script>
  87. data_pieChart=[{"values": [{"value": 3, "label": "Orange"},
  88. {"value": 4, "label": "Banana"},
  89. {"value": 0, "label": "Pear"},
  90. {"value": 1, "label": "Kiwi"},
  91. {"value": 5, "label": "Apple"},
  92. {"value": 7, "label": "Strawberry"},
  93. {"value": 3, "label": "Pineapple"}], "key": "Serie 1"}];
  94. nv.addGraph(function() {
  95. var chart = nv.models.pieChart();
  96. chart.margin({top: 30, right: 60, bottom: 20, left: 60});
  97. var datum = data_pieChart[0].values;
  98. chart.tooltipContent(function(key, y, e, graph) {
  99. var x = String(key);
  100. var y = String(y) + ' cal';
  101. tooltip_str = '<center><b>'+x+'</b></center>' + y;
  102. return tooltip_str;
  103. });
  104. chart.showLegend(true);
  105. chart.showLabels(true);
  106. chart.donut(false);
  107. chart
  108. .x(function(d) { return d.label })
  109. .y(function(d) { return d.value });
  110. chart.width(450);
  111. chart.height(450);
  112. d3.select('#pieChart svg')
  113. .datum(datum)
  114. .transition().duration(500)
  115. .attr('width', 450)
  116. .attr('height', 450)
  117. .call(chart);
  118. });
  119. </script>
  120. Documentation
  121. -------------
  122. Check out the documentation on `Read the Docs`_ for some live Chart examples!
  123. .. _Read the Docs: http://python-nvd3.readthedocs.org
  124. Installation
  125. ------------
  126. Install, upgrade and uninstall python-nvd3 with these commands::
  127. $ pip install python-nvd3
  128. $ pip install --upgrade python-nvd3
  129. $ pip uninstall python-nvd3
  130. Dependencies
  131. ------------
  132. D3 and NvD3 can be installed through bower (which itself can be installed through npm).
  133. See http://bower.io/ and https://npmjs.org for further information.
  134. To install bower globally execute::
  135. $ npm install -g bower
  136. Note : you might prefer to save your npm dependencies locally in a ``package.json`` file.
  137. Then in the directory where you will use python-nvd3, just execute the following commands::
  138. $ bower install d3#3.5.17
  139. $ bower install nvd3#1.8.6
  140. This will create a directory "bower_components" where d3 & nvd3 will be saved.
  141. Note : you might prefer to save your bower dependencies locally in a ``bower.json`` file.
  142. You can also configure the directory where your bower dependencies will be
  143. saved adding a ``.bowerrc`` file in your project root directory.
  144. Django Wrapper
  145. --------------
  146. There is also a django wrapper for nvd3 available:
  147. https://github.com/areski/django-nvd3
  148. IPython Notebooks
  149. -----------------
  150. Python-NVD3 works nicely within IPython Notebooks (thanks to @jdavidheiser)
  151. See the examples directory for an Ipython notebook with python-nvd3.
  152. License
  153. -------
  154. Python-nvd3 is licensed under MIT, see `MIT-LICENSE.txt`.
  155. Maintainers
  156. -----------
  157. If you want to help maintain this project, please get in touch.
  158. History
  159. -------
  160. 0.15.0 - current
  161. ---------------------
  162. * new settings show_controls & xAxis_rotateLabel
  163. * add setting to add callback
  164. 0.14.0 - (2015-12-09)
  165. ---------------------
  166. * update project structure
  167. * remove setuptools from requirements
  168. 0.13.8 - (2015-04-12)
  169. ---------------------
  170. * fix scatterChart
  171. 0.13.7 - (2015-04-06)
  172. ---------------------
  173. * set format on x2Axis for focus
  174. 0.13.6 - (2015-04-06)
  175. ---------------------
  176. * add support for focusEnable
  177. * remove linePlusBarWithFocusChart as this is replaced by linePlusBarChart with option FocusEnable():
  178. http://nvd3-community.github.io/nvd3/examples/documentation.html#linePlusBarChart
  179. * Sourcing JS assets over https when appropriate
  180. 0.13.5 (2014-11-13)
  181. -------------------
  182. * Fix: color_list extra arguments is not mandatory on piechart
  183. 0.13.0 (2014-08-04)
  184. -------------------
  185. * User Jinja2 to create the JS charts
  186. 0.11.0 (2013-10-09)
  187. -------------------
  188. * allow chart_attr to be set as follow 'xAxis': '.rotateLabels(-25)'
  189. this will turn into calling chart.xAxis.rotateLabels(-25)
  190. 0.11.0 (2013-10-09)
  191. -------------------
  192. * date setting is replaced by x_is_date
  193. * refactoring
  194. 0.10.2 (2013-10-04)
  195. -------------------
  196. * discreteBarChart support date on xAxis
  197. 0.10.1 (2013-10-03)
  198. -------------------
  199. * Remove $ sign in linePlusBarWithFocusChart
  200. 0.10.0 (2013-10-02)
  201. -------------------
  202. * Support new chart linePlusBarWithFocusChart
  203. 0.9.0 (2013-09-30)
  204. ------------------
  205. * Use Bower to install D3 and NVD3
  206. 0.8.0 (2013-08-15)
  207. ------------------
  208. * add NVD3Chart.buildcontent() by cmorgan (Chris Morgan)
  209. * Add show_labels parameter for Piechart by RaD (Ruslan Popov)
  210. 0.7.0 (2013-07-09)
  211. ------------------
  212. * Generalise the axis_formatting & add support for hiding the legend by nzjrs (John Stowers)
  213. * Fix #7 from DanMeakin, wrong str conversion of x-axis dates
  214. 0.6.0 (2013-06-05)
  215. ------------------
  216. * Add AM_PM function for x-axis on lineChart
  217. 0.5.2 (2013-05-31)
  218. ------------------
  219. * ScatterChat option to pass 'size': '10' as argument of the series
  220. * Fix in setup.py for python3
  221. 0.5.1 (2013-05-30)
  222. ------------------
  223. * Fix multiChart with date
  224. 0.5.0 (2013-05-28)
  225. ------------------
  226. * Add color_list option on piechart
  227. 0.4.1 (2013-05-06)
  228. ------------------
  229. * Fix removed forced sorted on x-axis
  230. 0.4.0 (2013-04-28)
  231. ------------------
  232. * Add support for Python3
  233. 0.3.6 (2013-04-24)
  234. ------------------
  235. * Add custom dateformat var for tooltip
  236. 0.3.5 (2013-04-23)
  237. ------------------
  238. * Fix style
  239. 0.3.4 (2013-04-23)
  240. ------------------
  241. * Support for px and % on height and width
  242. * Add tag_script_js property to disable tag <script>
  243. 0.3.3 (2013-04-23)
  244. ------------------
  245. * Data series it now in javascript format
  246. 0.3.2 (2013-04-22)
  247. ------------------
  248. * Fix lineChart tooltip
  249. 0.3.1 (2013-04-19)
  250. ------------------
  251. * Option to change the color schemes
  252. * Set a specific color per serie
  253. 0.3 (2013-04-19)
  254. ----------------
  255. * Add tooltip support
  256. * Mix enhancement of APIs
  257. 0.2 (2013-04-16)
  258. ----------------
  259. * Proper project release including support for the following chart:
  260. lineWithFocusChart
  261. lineChart
  262. multiBarChart
  263. pieChart
  264. stackedAreaChart
  265. multiBarHorizontalChart
  266. linePlusBarChart
  267. cumulativeLineChart
  268. discreteBarChart
  269. scatterChart
  270. 0.1 (2013-04-08)
  271. ----------------
  272. * First release