--- id: python-nvd3 version: "0.16.0" license: MIT license_treatment: permissive maintenance: aging --- # python-nvd3 — Python NVD3 - Chart Library for d3.js License: permissive · Maintenance: aging · Downloads: 2.4M/mo ## What it is and what it does Python-nvd3 is a Python wrapper that converts chart definitions into NVD3 JavaScript code and HTML, letting you define interactive charts in Python and render them for web display. You instantiate a chart class (pieChart, lineChart, barChart, etc.), add data series, and call buildcontent() to generate the HTML string containing both the data and the NVD3 rendering code. The package has no runtime dependencies—it generates static HTML/JavaScript output—but requires you to separately install the NVD3 and D3 JavaScript libraries (via npm/bower) into your project directory so the generated HTML can reference them. The generated charts can be embedded in web applications, saved to files, or displayed in IPython notebooks. The project is in production/stable status but has not been actively maintained for over two years. Use it for: - Generate pie, line, and bar charts for a Flask or Django web application without writing JavaScript. - Create interactive data visualizations in IPython notebooks by converting Python data into NVD3 charts. - Embed pre-built chart templates (scatter, stacked area, multi-bar) in a reporting dashboard. - Export chart HTML to static files for inclusion in documentation or email reports. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Generates interactive NVD3 charts (pie, line, bar, scatter, and others) as HTML/JavaScript from Python code, wrapping the NVD3 charting library built on D3.js. Yes, with conditions. Install if you need to generate NVD3 charts from Python and can manage the separate JavaScript dependency setup (npm/bower for D3 and NVD3). The package is stable and permissively licensed, but maintenance has stalled—the underlying NVD3 and D3 libraries are also aging, so verify that their versions (3.5.17 and 1.8.6) meet your security and browser-compatibility needs before committing to production use. ## Install pip install python-nvd3 uv add python-nvd3 poetry add python-nvd3 ## Installing python-nvd3 Before you install: High install friction: the package itself has no runtime dependencies, but requires separate installation of D3 and NVD3 JavaScript libraries via npm/bower (d3#3.5.17 and nvd3#1.8.6), which must be downloaded and configured in your project separately. The project is aging—last release was 844 days ago—though the repository remains active and has not been archived. License in practice: MIT license is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions, provided you retain the license notice. Quickstart: pip install python-nvd3 from nvd3 import pieChart chart = pieChart(name='myChart', height=450, width=450) chart.add_serie(y=[3, 4, 1], x=['Orange', 'Banana', 'Kiwi']) chart.buildcontent() print(chart.htmlcontent) D3 (3.5.17) and NVD3 (1.8.6) JavaScript libraries must be installed separately via npm/bower into your project directory; the generated HTML will reference them via relative paths (bower_components/). Verify before relying: - Whether the required NVD3 (1.8.6) and D3 (3.5.17) versions are still maintained and secure. - Current state of browser compatibility for the generated charts, given the age of the underlying libraries. - Whether Python 2.7 support (listed in classifiers) is still functional or merely historical. ## Package facts - License: MIT (permissive) - Python support: unspecified - Install friction: high - Maintenance: aging - Downloads: 2.4M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags python d3 charts, nvd3 wrapper, interactive javascript charts, generate html charts python, d3.js visualization library, charting, d3-visualization, web-graphics [View on SkillFed](https://skillfed.io/packages/python-nvd3) · [View on PyPI](https://pypi.org/project/python-nvd3/)