highcharts-gantt

High-end Gantt Chart Visualization for the Python Ecosystem


Keywords
charts, data, visualization, viz, gantt, graphing, highcharts, plotting, project, management, charting, charting-library, gantt-chart, project-management
Licenses
GPL-3.0+/OML
Install
pip install highcharts-gantt==1.7.0

Documentation

Highcharts Gantt for Python

High-end Gantt chart visualization for the Python ecosystem

Highcharts Gantt for Python is an extension to the Highcharts Stock for Python library, providing a Python wrapper for the Highcharts Gantt JavaScript data visualization library.

Highcharts Gantt for Python also supports

  • Highcharts Core (JS) - the core Highcharts data visualization library
  • Highcharts Stock (JS) - the Highcharts extension providing time series and asset price data visualization
  • The Highcharts Export Server - enabling the programmatic creation of static (downloadable) data visualizations

The library supports Highcharts (JS) v.10.2 and higher, including Highcharts (JS) v.11.4.0.

Highcharts Gantt for Python is fully integrated with the broader Python ecosystem, featuring native integrations with:

  • Jupyter Labs/Notebook. You can now produce high-end and interactive plots and renders using the full suite of Highcharts visualization capabilities.
  • Pandas. Automatically produce data visualizations from your Pandas dataframes
  • PySpark. Automatically produce data visualizations from data in a PySpark dataframe.
  • Asana. You can generate Gantt charts from your Asana projects using one simple method call.
  • Monday.com. Produce Gantt charts automatically from your Monday.com projects.
  • JIRA. Generate Gantt charts from your Atlassian JIRA Cloud projects.

COMPLETE DOCUMENTATION: http://gantt-docs.highchartspython.com/en/latest/index.html


The Highcharts for Python Toolkit

The Highcharts Gantt for Python library is part of the broader Highcharts for Python Toolkit, which together provides comprehensive support across the entire Highcharts suite of data visualization libraries:

Python Library JavaScript Library Description
Highcharts Core for Python Highcharts Core (JS) (this library) the core Highcharts data visualization library
Highcharts Stock for Python Highcharts Stock (JS) the time series visualization extension to Highcharts Core
Highcharts Maps for Python Highcharts Maps (JS) the map visualization extension to Highcharts Core
Highcharts Gantt for Python Highcharts Gantt (JS) the Gantt charting extension to Highcharts Core
(all libraries in the Python toolkit) The Highcharts Export Server enabling the programmatic creation of static (downloadable) data visualizations

Installation

To install Highcharts Gantt for Python, just execute:

Before you install, please be aware of the following "hard" dependencies:

You can find more information about soft and development dependencies in the complete documentation.


Why Highcharts for Python?

Highcharts is the world's most popular, most powerful, category-defining JavaScript data visualization library. If you are building a web or mobile app/dashboard that will be visualizing data in some fashion, you should absolutely take a look at the Highcharts suite of solutions. Take a peak at some fantastic demo visualizations.

As a suite of JavaScript libraries, Highcharts is written in JavaScript, and is used to configure and render data visualizations in a web browser (or other JavaScript-executing) environment. As a set of JavaScript libraries, its audience is JavaScript developers. But what about the broader ecosystem of Python developers and data scientists?

Given Python's increasing adoption as the technology of choice for data science and for the backends of leading enterprise-grade applications, Python is often the backend that delivers data and content to the front-end...which then renders it using JavaScript and HTML.

There are numerous Python frameworks (Django, Flask, Tornado, etc.) with specific capabilities to simplify integration with Javascript frontend frameworks (React, Angular, VueJS, etc.). But facilitating that with Highcharts has historically been very difficult. Part of this difficulty is because the Highcharts JavaScript suite - while supporting JSON as a serialization/deserialization format - leverages JavaScript object literals to expose the full power and interactivity of its data visualizations. And while it's easy to serialize JSON from Python, serializing and deserializing to/from JavaScript object literal notation is much more complicated.

This means that Python developers looking to integrate with Highcharts typically had to either invest a lot of effort, or were only able to leverage a small portion of Highcharts' rich functionality.

So we wrote the Highcharts for Python Toolkit to bridge that gap.

Highcharts for Python provides Python object representation for all of the JavaScript objects defined in the Highcharts (JavaScript) API. It provides automatic data validation, and exposes simple and standardized methods for serializing those Python objects back-and-forth to JavaScript object literal notation.

Highcharts Gantt for Python provides support for the Highcharts Gantt extension, which is designed to provide extensive capabilities optimized for project, time, and resource allocation data visualization with robust interactivity. For ease of use, it also includes the full functionality of Highcharts Stock for Python and Highcharts Core for Python.

Key Highcharts Gantt for Python Features

  • Clean and consistent API. No reliance on "hacky" code, dict and JSON serialization, or impossible to maintain / copy-pasted "spaghetti code".
  • Comprehensive Highcharts support. Every single Highcharts chart type and every single configuration option is supported in Highcharts Gantt for Python. This includes:

    all with full support for the rich JavaScript formatter (JS callback functions) capabilities that are often needed to get the most out of Highcharts' visualization and interaction capabilities.

    Note

    See Also:

  • Simple JavaScript Code Generation. With one method call, produce production-ready JavaScript code to render your interactive visualizations using Highcharts' rich capabilities.
  • Easy Chart Download. With one method call, produce high-end static visualizations that can be downloaded or shared as files with your audience. Produce static charts using the Highsoft-provided Highcharts Export Server, or using your own private export server as needed.
  • Integration with Asana, Monday.com, and Jira. Your project data likely lives in a modern project management platform like Asana, Monday.com, or Atlassian JIRA. You can easily pull data from those platforms into your Highcharts Gantt visualizations using one method call.
  • Integration with Pandas and PySpark. With two lines of code, produce a high-end interactive visualization of your Pandas or PySpark dataframe.
  • Consistent Code Style. For Python developers, switching between Pythonic code conventions and JavaScript code conventions can be...annoying. So Highcharts for Python applies Pythonic syntax with automatic conversion between Pythonic snake_case notation and JavaScript camelCase styles.

Highcharts Gantt for Python vs Alternatives

For a discussion of Highcharts Gantt for Python in comparison to alternatives, please see the COMPLETE DOCUMENTATION: http://gantt-docs.highchartspython.com/en/latest/index.html


Hello World, and Basic Usage

1. Import Highcharts Gantt for Python

2. Create Your Chart

3. Configure Global Settings (optional)

4. Configure Your Chart / Global Settings

5. Generate the JavaScript Code for Your Chart

Now having configured your chart in full, you can easily generate the JavaScript code that will render the chart wherever it is you want it to go:

6. Generate the JavaScript Code for Your Global Settings (optional)

7. Generate a Static Version of Your Chart

8. Render Your Chart in a Jupyter Notebook


Getting Help/Support

The Highcharts for Python Toolkit comes with all of the great support that you are used to from working with the Highcharts JavaScript libraries. When you license the toolkit, you are welcome to use any of the following channels to get help using the toolkit:

FOR MORE INFORMATION: https://www.highchartspython.com/get-help


Contributing

We welcome contributions and pull requests! For more information, please see the Contributor Guide <https://gantt-docs.highchartspython.com/en/latest/contributing.html>. And thanks to all those who've already contributed!


Testing

We use TravisCI for our build automation and ReadTheDocs for our documentation.

Detailed information about our test suite and how to run tests locally can be found in our Testing Reference.