highcharts-gantt


Namehighcharts-gantt JSON
Version 1.7.0 PyPI version JSON
download
home_pageNone
SummaryHigh-end Gantt Chart Visualization for the Python Ecosystem
upload_time2024-04-07 21:42:19
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords charts data visualization data viz gantt graphing highcharts highcharts gantt plotting project management
VCS
bugtrack_url
requirements esprima requests validator-collection highcharts-stock
Travis-CI
coveralls test coverage No coveralls.
            ###################################################
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 <https://stock-docs.highchartspython.com>`__ library, providing
a Python wrapper for the
`Highcharts Gantt <https://www.highcharts.com/products/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 <https://www.highcharts.com/integrations/python>`__, 
which together provides comprehensive support across the entire 
`Highcharts <https://www.highcharts.com>`__ suite of data visualization libraries:

.. list-table::
  :widths: 30 30 40
  :header-rows: 1

  * - Python Library
    - JavaScript Library
    - Description
  * - `Highcharts Core for Python <https://core-docs.highchartspython.com/>`__
    - `Highcharts Core (JS) <https://www.highcharts.com/products/highcharts/>`__
    - (this library) the core Highcharts data visualization library
  * - `Highcharts Stock for Python <https://stock-docs.highchartspython.com/>`__
    - `Highcharts Stock (JS) <https://www.highcharts.com/products/stock/>`__
    - the time series visualization extension to Highcharts Core
  * - `Highcharts Maps for Python <https://maps-docs.highchartspython.com/>`__ 
    - `Highcharts Maps (JS) <https://www.highcharts.com/products/maps/>`__
    - the map visualization extension to Highcharts Core
  * - **Highcharts Gantt for Python**
    - `Highcharts Gantt (JS) <https://www.highcharts.com/products/gantt/>`__
    - 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:

  .. code-block:: bash

    $ pip install highcharts-gantt

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

  * Python 3.10 or higher
  * Highcharts Gantt (JS) v.10.3 or higher (not technically a Python dependency, but 
    it won't work with earlier versions of Highcharts Stock)
  * `Highcharts Stock for Python <https://stock-docs.highchartspython.com/en/latest/>`__ v.1.7 or higher
  * `esprima-python <https://github.com/Kronuz/esprima-python>`__ v.4.0 or higher
  * `requests <https://requests.readthedocs.io/en/latest/>`__ v.2.31 or higher
  * `validator-collection <https://validator-collection.readthedocs.io/en/latest/>`__
    v.1.5 or higher

You can find more information about soft and development dependencies in the
`complete documentation <https://gantt-docs.highchartspython.com/en/latest/#dependencies>`__.

-------------

*********************************
Why Highcharts for Python?
*********************************

`Highcharts <https://www.highcharts.com>`__ 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 <https://www.highcharts.com/demo>`__.

As a suite of JavaScript libraries, `Highcharts <https://www.highcharts.com>`__ 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 <https://api.highcharts.com/highcharts/>`__. 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 <https://www.highcharts.com/products/maps/>`__ 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 <https://stock-docs.highchartspython.com/>`__ and 
`Highcharts Core for Python <https://core-docs.highchartspython.com/>`__.

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:

    * the over 70 data visualization types supported by
      `Highcharts Core <https://www.highcharts.com/product/highcharts/>`__,
    * the 50+ visualizations supported by 
      `Highcharts Stock <https://www.highcharts.com/products/stock/>`__ 
    * the multiple Gantt visualizations available in
      `Highcharts Gantt <https://www.highcharts.com/product/gantt/>`__
      
  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:**

    * `Supported Visualizations <https://gantt-docs.highchartspython.com/en/latest/visualizations.html>`__

* **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 <https://www.asana.com/>`__, 
  `Monday.com <https://www.monday.com>`__, or `Atlassian JIRA <https://www.atlassian.com>`__. 
  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
==========================================

.. code-block:: python
  
  # PRECISE-LOCATION PATTERN: BEST PRACTICE!
  # This method of importing Highcharts for Python objects yields the fastest
  # performance for the import statement. However, it is more verbose and requires
  # you to navigate the extensive Highcharts Core for Python API.

  # Import classes using precise module indications. For example:
  from highcharts_core.chart import Chart
  from highcharts_core.global_options.shared_options import SharedOptions
  from highcharts_core.options import HighchartsOptions
  from highcharts_core.options.plot_options.bar import BarOptions
  from highcharts_core.options.series.bar import BarSeries

  # CATCH-ALL PATTERN
  # This method of importing Highcharts for Python classes has relatively slow
  # performance because it imports hundreds of different classes from across the entire
  # library. This performance impact may be acceptable to you in your use-case, but
  # do use at your own risk.

  # Import objects from the catch-all ".highcharts" module.
  from highcharts_core import highcharts

  # You can now access specific classes without individual import statements.
  highcharts.Chart
  highcharts.SharedOptions
  highcharts.HighchartsOptions
  highcharts.BarOptions
  highcharts.BarSeries


2. Create Your Chart
================================

  .. code-block:: python

    # from a primitive array, using keyword arguments
    my_chart = Chart(data = [[1, 23], [2, 34], [3, 45]], 
                     series_type = 'line')

    # from a primitive array, using the .from_array() method
    my_chart = Chart.from_array([[1, 23], [2, 34], [3, 45]], 
                                series_type = 'line')

    # from a Numpy ndarray, using keyword arguments
    my_chart = Chart(data = numpy_array, series_type = 'line')

    # from a Numpy ndarray, using the .from_array() method
    my_chart = Chart.from_array(data = numpy_array, series_type = 'line')

    # from a JavaScript file
    my_chart = Chart.from_js_literal('my_js_literal.js')

    # from a JSON file
    my_chart = Chart.from_json('my_json.json')

    # from a Python dict
    my_chart = Chart.from_dict(my_dict_obj)

    # from a Pandas dataframe
    my_chart = Chart.from_pandas(df)

    # from a PySpark dataframe
    my_chart = Chart.from_pyspark(df,
                                  property_map = {
                                      'x': 'transactionDate',
                                      'y': 'invoiceAmt',
                                      'id': 'id'
                                  },
                                  series_type = 'line')

    # from a CSV
    my_chart = Chart.from_csv('/some_file_location/filename.csv')

    # from a HighchartsOptions configuration object
    my_chart = Chart.from_options(my_options)

    # from a Series configuration, using keyword arguments
    my_chart = Chart(series = my_series)

    # from a Series configuration, using .from_series()
    my_chart = Chart.from_series(my_series)


3. Configure Global Settings (optional)
=============================================

  .. code-block:: python

    # Import SharedOptions
    from highcharts_core.global_options.shared_options import SharedOptions

    # from a JavaScript file
    my_global_settings = SharedOptions.from_js_literal('my_js_literal.js')

    # from a JSON file
    my_global_settings = SharedOptions.from_json('my_json.json')

    # from a Python dict
    my_global_settings = SharedOptions.from_dict(my_dict_obj)

    # from a HighchartsOptions configuration object
    my_global_settings = SharedOptions.from_options(my_options)


4. Configure Your Chart / Global Settings
================================================

  .. code-block:: python

    from highcharts_core.options.title import Title
    from highcharts_core.options.credits import Credits

    # EXAMPLE 1.
    # Using dicts
    my_chart.title = {
        'align': 'center',
        'floating': True,
        'text': 'The Title for My Chart',
        'use_html': False,
    }

    my_chart.credits = {
        'enabled': True,
        'href': 'https://www.highchartspython.com/',
        'position': {
            'align': 'center',
            'vertical_align': 'bottom',
            'x': 123,
            'y': 456
        },
        'style': {
            'color': '#cccccc',
            'cursor': 'pointer',
            'font_size': '9px'
        },
        'text': 'Chris Modzelewski'
    }

    # EXAMPLE 2.
    # Using direct objects
    from highcharts_core.options.title import Title
    from highcharts_core.options.credits import Credits

    my_title = Title(text = 'The Title for My Chart',
                     floating = True, 
                     align = 'center')
    my_chart.options.title = my_title

    my_credits = Credits(text = 'Chris Modzelewski', 
                         enabled = True, 
                         href = 'https://www.highchartspython.com')
    my_chart.options.credits = my_credits

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:

  .. code-block:: python

    # EXAMPLE 1.
    # as a string
    js_as_str = my_chart.to_js_literal()

    # EXAMPLE 2.
    # to a file (and as a string)
    js_as_str = my_chart.to_js_literal(filename = 'my_target_file.js')


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

  .. code-block:: python

    # as a string
    global_settings_js = my_global_settings.to_js_literal()

    # to a file (and as a string)
    global_settings_js = my_global_settings.to_js_literal('my_target_file.js')


7. Generate a Static Version of Your Chart
==============================================

  .. code-block:: python

    # as in-memory bytes
    my_image_bytes = my_chart.download_chart(format = 'png')

    # to an image file (and as in-memory bytes)
    my_image_bytes = my_chart.download_chart(filename = 'my_target_file.png',
                                             format = 'png')

8. Render Your Chart in a Jupyter Notebook
===============================================

  .. code-block:: python

    my_chart.display()

--------------

***********************
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:

  * Use the `Highcharts Forums <https://highcharts.com/forum>`__
  * Use `Stack Overflow <https://stackoverflow.com/questions/tagged/highcharts-for-python>`__ 
    with the ``highcharts-for-python`` tag
  * `Report bugs or request features <https://github.com/highcharts-for-python/highcharts-gantt/issues>`__  
    in the library's Github repository
  * `File a support ticket <https://www.highchartspython.com/get-help>`__ with us
  * `Schedule a live chat or video call <https://www.highchartspython.com/get-help>`__ 
    with us

**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 <http://travisci.com>`_ for our build automation and
`ReadTheDocs <https://readthedocs.com>`_ for our documentation.

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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "highcharts-gantt",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "charts, data visualization, data viz, gantt, graphing, highcharts, highcharts gantt, plotting, project management",
    "author": null,
    "author_email": "HCP LLC <support@highchartspython.com>",
    "download_url": "https://files.pythonhosted.org/packages/60/3d/9c31edd8953bb098b0b4baf24fcfab3ad91ea8500bf5dd8da622061c7ca5/highcharts_gantt-1.7.0.tar.gz",
    "platform": null,
    "description": "###################################################\nHighcharts Gantt for Python\n###################################################\n\n**High-end Gantt chart visualization for the Python ecosystem**\n\n**Highcharts Gantt for Python** is an extension to the\n`Highcharts Stock for Python <https://stock-docs.highchartspython.com>`__ library, providing\na Python wrapper for the\n`Highcharts Gantt <https://www.highcharts.com/products/gantt/>`__\nJavaScript data visualization library. \n\n**Highcharts Gantt for Python** also supports\n\n  * **Highcharts Core (JS)** - the core Highcharts data visualization library\n  * **Highcharts Stock (JS)** - the Highcharts extension providing time series and asset price data visualization\n  * The **Highcharts Export Server** - enabling the programmatic creation of static\n    (downloadable) data visualizations\n\nThe library supports Highcharts (JS) v.10.2 and higher, including Highcharts (JS) v.11.4.0.\n\n**Highcharts Gantt for Python** is fully integrated with the broader Python ecosystem,\nfeaturing native integrations with:\n\n  * **Jupyter Labs/Notebook**. You can now produce high-end and interactive plots and\n    renders using the full suite of Highcharts visualization capabilities.\n  * **Pandas**. Automatically produce data visualizations from your Pandas dataframes\n  * **PySpark**. Automatically produce data visualizations from data in a PySpark\n    dataframe.\n  * **Asana**. You can generate Gantt charts from your Asana projects using one simple method call.\n  * **Monday.com**. Produce Gantt charts automatically from your Monday.com projects.\n  * **JIRA**. Generate Gantt charts from your Atlassian JIRA Cloud projects.\n\n**COMPLETE DOCUMENTATION:** http://gantt-docs.highchartspython.com/en/latest/index.html\n\n-----------------------\n\n***************************************\nThe Highcharts for Python Toolkit\n***************************************\n\nThe **Highcharts Gantt for Python** library is part of the broader \n`Highcharts for Python Toolkit <https://www.highcharts.com/integrations/python>`__, \nwhich together provides comprehensive support across the entire \n`Highcharts <https://www.highcharts.com>`__ suite of data visualization libraries:\n\n.. list-table::\n  :widths: 30 30 40\n  :header-rows: 1\n\n  * - Python Library\n    - JavaScript Library\n    - Description\n  * - `Highcharts Core for Python <https://core-docs.highchartspython.com/>`__\n    - `Highcharts Core (JS) <https://www.highcharts.com/products/highcharts/>`__\n    - (this library) the core Highcharts data visualization library\n  * - `Highcharts Stock for Python <https://stock-docs.highchartspython.com/>`__\n    - `Highcharts Stock (JS) <https://www.highcharts.com/products/stock/>`__\n    - the time series visualization extension to Highcharts Core\n  * - `Highcharts Maps for Python <https://maps-docs.highchartspython.com/>`__ \n    - `Highcharts Maps (JS) <https://www.highcharts.com/products/maps/>`__\n    - the map visualization extension to Highcharts Core\n  * - **Highcharts Gantt for Python**\n    - `Highcharts Gantt (JS) <https://www.highcharts.com/products/gantt/>`__\n    - the Gantt charting extension to Highcharts Core\n  * - (all libraries in the Python toolkit)\n    - The **Highcharts Export Server** \n    - enabling the programmatic creation of static (downloadable) data visualizations\n\n--------------------\n\n***************\nInstallation\n***************\n\nTo install **Highcharts Gantt for Python**, just execute:\n\n  .. code-block:: bash\n\n    $ pip install highcharts-gantt\n\nBefore you install, please be aware of the following \"hard\" dependencies:\n\n  * Python 3.10 or higher\n  * Highcharts Gantt (JS) v.10.3 or higher (not technically a Python dependency, but \n    it won't work with earlier versions of Highcharts Stock)\n  * `Highcharts Stock for Python <https://stock-docs.highchartspython.com/en/latest/>`__ v.1.7 or higher\n  * `esprima-python <https://github.com/Kronuz/esprima-python>`__ v.4.0 or higher\n  * `requests <https://requests.readthedocs.io/en/latest/>`__ v.2.31 or higher\n  * `validator-collection <https://validator-collection.readthedocs.io/en/latest/>`__\n    v.1.5 or higher\n\nYou can find more information about soft and development dependencies in the\n`complete documentation <https://gantt-docs.highchartspython.com/en/latest/#dependencies>`__.\n\n-------------\n\n*********************************\nWhy Highcharts for Python?\n*********************************\n\n`Highcharts <https://www.highcharts.com>`__ is the world's most popular, most powerful, \ncategory-defining JavaScript data visualization library. If you are building a web or \nmobile app/dashboard that will be visualizing data in some fashion, you should \nabsolutely take a look at the Highcharts suite of solutions. Take a peak at some \nfantastic `demo visualizations <https://www.highcharts.com/demo>`__.\n\nAs a suite of JavaScript libraries, `Highcharts <https://www.highcharts.com>`__ is \nwritten in JavaScript, and is used to configure and render data visualizations in a\nweb browser (or other JavaScript-executing) environment. As a set of JavaScript\nlibraries, its audience is JavaScript developers. But what about the broader ecosystem of\nPython developers and data scientists?\n\nGiven Python's increasing adoption as the technology of choice for data science and for\nthe backends of leading enterprise-grade applications, Python is often the backend that \ndelivers data and content to the front-end...which then renders it using JavaScript and \nHTML.\n\nThere are numerous Python frameworks (Django, Flask, Tornado, etc.) with specific\ncapabilities to simplify integration with Javascript frontend frameworks (React, Angular,\nVueJS, etc.). But facilitating that with Highcharts has historically been very difficult.\nPart of this difficulty is because the Highcharts JavaScript suite - while supporting JSON as a\nserialization/deserialization format - leverages JavaScript object literals to expose the\nfull power and interactivity of its data visualizations. And while it's easy to serialize\nJSON from Python, serializing and deserializing to/from JavaScript object literal notation\nis much more complicated. \n\nThis means that Python developers looking to integrate with Highcharts typically had to \neither invest a lot of effort, or were only able to leverage a small portion of Highcharts' \nrich functionality.\n\nSo we wrote the **Highcharts for Python Toolkit** to bridge that gap.\n\n**Highcharts for Python** provides Python object representation for *all* of the\nJavaScript objects defined in the\n`Highcharts (JavaScript) API <https://api.highcharts.com/highcharts/>`__. It provides automatic \ndata validation, and exposes simple and standardized methods for serializing those Python\nobjects back-and-forth to JavaScript object literal notation.\n\n**Highcharts Gantt for Python** provides support for\nthe `Highcharts Gantt <https://www.highcharts.com/products/maps/>`__ extension, which is\ndesigned to provide extensive capabilities optimized for project, time, and resource \nallocation data visualization with robust interactivity. For ease of use, it also includes \nthe full functionality of \n`Highcharts Stock for Python <https://stock-docs.highchartspython.com/>`__ and \n`Highcharts Core for Python <https://core-docs.highchartspython.com/>`__.\n\nKey Highcharts Gantt for Python Features\n==============================================\n\n* **Clean and consistent API**. No reliance on \"hacky\" code, ``dict``\n  and JSON serialization, or impossible to maintain / copy-pasted \"spaghetti code\".\n* **Comprehensive Highcharts support**. Every single Highcharts chart type and every\n  single configuration option is supported in **Highcharts Gantt for Python**. This\n  includes:\n\n    * the over 70 data visualization types supported by\n      `Highcharts Core <https://www.highcharts.com/product/highcharts/>`__,\n    * the 50+ visualizations supported by \n      `Highcharts Stock <https://www.highcharts.com/products/stock/>`__ \n    * the multiple Gantt visualizations available in\n      `Highcharts Gantt <https://www.highcharts.com/product/gantt/>`__\n      \n  all with full support for the rich JavaScript formatter (JS callback functions)\n  capabilities that are often needed to get the most out of Highcharts' visualization and\n  interaction capabilities.\n\n  .. note::\n\n    **See Also:**\n\n    * `Supported Visualizations <https://gantt-docs.highchartspython.com/en/latest/visualizations.html>`__\n\n* **Simple JavaScript Code Generation**. With one method call, produce production-ready\n  JavaScript code to render your interactive visualizations using Highcharts' rich\n  capabilities.\n* **Easy Chart Download**. With one method call, produce high-end static\n  visualizations that can be downloaded or shared as files with your audience. Produce\n  static charts using the Highsoft-provided **Highcharts Export Server**, or using your \n  own private export server as needed.\n* **Integration with Asana, Monday.com, and Jira**. Your project data likely lives in\n  a modern project management platform like `Asana <https://www.asana.com/>`__, \n  `Monday.com <https://www.monday.com>`__, or `Atlassian JIRA <https://www.atlassian.com>`__. \n  You can easily pull data from those platforms into your **Highcharts Gantt** visualizations \n  using one method call.\n* **Integration with Pandas and PySpark**. With two lines of code, produce a high-end\n  interactive visualization of your Pandas or PySpark dataframe.\n* **Consistent Code Style**. For Python developers, switching between Pythonic code\n  conventions and JavaScript code conventions can be...annoying. So\n  **Highcharts for Python** applies Pythonic syntax with automatic conversion between\n  Pythonic ``snake_case`` notation and JavaScript ``camelCase`` styles.\n\n|\n\n**Highcharts Gantt for Python** vs Alternatives\n===================================================\n\nFor a discussion of **Highcharts Gantt for Python** in comparison to alternatives, please see\nthe **COMPLETE DOCUMENTATION:** http://gantt-docs.highchartspython.com/en/latest/index.html\n\n---------------------\n\n********************************\nHello World, and Basic Usage\n********************************\n\n1. Import Highcharts Gantt for Python\n==========================================\n\n.. code-block:: python\n  \n  # PRECISE-LOCATION PATTERN: BEST PRACTICE!\n  # This method of importing Highcharts for Python objects yields the fastest\n  # performance for the import statement. However, it is more verbose and requires\n  # you to navigate the extensive Highcharts Core for Python API.\n\n  # Import classes using precise module indications. For example:\n  from highcharts_core.chart import Chart\n  from highcharts_core.global_options.shared_options import SharedOptions\n  from highcharts_core.options import HighchartsOptions\n  from highcharts_core.options.plot_options.bar import BarOptions\n  from highcharts_core.options.series.bar import BarSeries\n\n  # CATCH-ALL PATTERN\n  # This method of importing Highcharts for Python classes has relatively slow\n  # performance because it imports hundreds of different classes from across the entire\n  # library. This performance impact may be acceptable to you in your use-case, but\n  # do use at your own risk.\n\n  # Import objects from the catch-all \".highcharts\" module.\n  from highcharts_core import highcharts\n\n  # You can now access specific classes without individual import statements.\n  highcharts.Chart\n  highcharts.SharedOptions\n  highcharts.HighchartsOptions\n  highcharts.BarOptions\n  highcharts.BarSeries\n\n\n2. Create Your Chart\n================================\n\n  .. code-block:: python\n\n    # from a primitive array, using keyword arguments\n    my_chart = Chart(data = [[1, 23], [2, 34], [3, 45]], \n                     series_type = 'line')\n\n    # from a primitive array, using the .from_array() method\n    my_chart = Chart.from_array([[1, 23], [2, 34], [3, 45]], \n                                series_type = 'line')\n\n    # from a Numpy ndarray, using keyword arguments\n    my_chart = Chart(data = numpy_array, series_type = 'line')\n\n    # from a Numpy ndarray, using the .from_array() method\n    my_chart = Chart.from_array(data = numpy_array, series_type = 'line')\n\n    # from a JavaScript file\n    my_chart = Chart.from_js_literal('my_js_literal.js')\n\n    # from a JSON file\n    my_chart = Chart.from_json('my_json.json')\n\n    # from a Python dict\n    my_chart = Chart.from_dict(my_dict_obj)\n\n    # from a Pandas dataframe\n    my_chart = Chart.from_pandas(df)\n\n    # from a PySpark dataframe\n    my_chart = Chart.from_pyspark(df,\n                                  property_map = {\n                                      'x': 'transactionDate',\n                                      'y': 'invoiceAmt',\n                                      'id': 'id'\n                                  },\n                                  series_type = 'line')\n\n    # from a CSV\n    my_chart = Chart.from_csv('/some_file_location/filename.csv')\n\n    # from a HighchartsOptions configuration object\n    my_chart = Chart.from_options(my_options)\n\n    # from a Series configuration, using keyword arguments\n    my_chart = Chart(series = my_series)\n\n    # from a Series configuration, using .from_series()\n    my_chart = Chart.from_series(my_series)\n\n\n3. Configure Global Settings (optional)\n=============================================\n\n  .. code-block:: python\n\n    # Import SharedOptions\n    from highcharts_core.global_options.shared_options import SharedOptions\n\n    # from a JavaScript file\n    my_global_settings = SharedOptions.from_js_literal('my_js_literal.js')\n\n    # from a JSON file\n    my_global_settings = SharedOptions.from_json('my_json.json')\n\n    # from a Python dict\n    my_global_settings = SharedOptions.from_dict(my_dict_obj)\n\n    # from a HighchartsOptions configuration object\n    my_global_settings = SharedOptions.from_options(my_options)\n\n\n4. Configure Your Chart / Global Settings\n================================================\n\n  .. code-block:: python\n\n    from highcharts_core.options.title import Title\n    from highcharts_core.options.credits import Credits\n\n    # EXAMPLE 1.\n    # Using dicts\n    my_chart.title = {\n        'align': 'center',\n        'floating': True,\n        'text': 'The Title for My Chart',\n        'use_html': False,\n    }\n\n    my_chart.credits = {\n        'enabled': True,\n        'href': 'https://www.highchartspython.com/',\n        'position': {\n            'align': 'center',\n            'vertical_align': 'bottom',\n            'x': 123,\n            'y': 456\n        },\n        'style': {\n            'color': '#cccccc',\n            'cursor': 'pointer',\n            'font_size': '9px'\n        },\n        'text': 'Chris Modzelewski'\n    }\n\n    # EXAMPLE 2.\n    # Using direct objects\n    from highcharts_core.options.title import Title\n    from highcharts_core.options.credits import Credits\n\n    my_title = Title(text = 'The Title for My Chart',\n                     floating = True, \n                     align = 'center')\n    my_chart.options.title = my_title\n\n    my_credits = Credits(text = 'Chris Modzelewski', \n                         enabled = True, \n                         href = 'https://www.highchartspython.com')\n    my_chart.options.credits = my_credits\n\n5. Generate the JavaScript Code for Your Chart\n=================================================\n\nNow having configured your chart in full, you can easily generate the JavaScript code\nthat will render the chart wherever it is you want it to go:\n\n  .. code-block:: python\n\n    # EXAMPLE 1.\n    # as a string\n    js_as_str = my_chart.to_js_literal()\n\n    # EXAMPLE 2.\n    # to a file (and as a string)\n    js_as_str = my_chart.to_js_literal(filename = 'my_target_file.js')\n\n\n6. Generate the JavaScript Code for Your Global Settings (optional)\n=========================================================================\n\n  .. code-block:: python\n\n    # as a string\n    global_settings_js = my_global_settings.to_js_literal()\n\n    # to a file (and as a string)\n    global_settings_js = my_global_settings.to_js_literal('my_target_file.js')\n\n\n7. Generate a Static Version of Your Chart\n==============================================\n\n  .. code-block:: python\n\n    # as in-memory bytes\n    my_image_bytes = my_chart.download_chart(format = 'png')\n\n    # to an image file (and as in-memory bytes)\n    my_image_bytes = my_chart.download_chart(filename = 'my_target_file.png',\n                                             format = 'png')\n\n8. Render Your Chart in a Jupyter Notebook\n===============================================\n\n  .. code-block:: python\n\n    my_chart.display()\n\n--------------\n\n***********************\nGetting Help/Support\n***********************\n\nThe **Highcharts for Python Toolkit** comes with all of the great support that \nyou are used to from working with the Highcharts JavaScript libraries. When you \nlicense the toolkit, you are welcome to use any of the following channels to get \nhelp using the toolkit:\n\n  * Use the `Highcharts Forums <https://highcharts.com/forum>`__\n  * Use `Stack Overflow <https://stackoverflow.com/questions/tagged/highcharts-for-python>`__ \n    with the ``highcharts-for-python`` tag\n  * `Report bugs or request features <https://github.com/highcharts-for-python/highcharts-gantt/issues>`__  \n    in the library's Github repository\n  * `File a support ticket <https://www.highchartspython.com/get-help>`__ with us\n  * `Schedule a live chat or video call <https://www.highchartspython.com/get-help>`__ \n    with us\n\n**FOR MORE INFORMATION:** https://www.highchartspython.com/get-help\n\n-----------------\n\n*********************\nContributing\n*********************\n\nWe welcome contributions and pull requests! For more information, please see the\n`Contributor Guide <https://gantt-docs.highchartspython.com/en/latest/contributing.html>`. \nAnd thanks to all those who've already contributed!\n\n-------------------\n\n*********************\nTesting\n*********************\n\nWe use `TravisCI <http://travisci.com>`_ for our build automation and\n`ReadTheDocs <https://readthedocs.com>`_ for our documentation.\n\nDetailed information about our test suite and how to run tests locally can be\nfound in our Testing Reference.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "High-end Gantt Chart Visualization for the Python Ecosystem",
    "version": "1.7.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/highcharts-for-python/highcharts-gantt/issues",
        "Demo": "https://github.com/highcharts-for-python/highcharts-for-python-demos",
        "Documentation": "https://gantt-docs.highchartspython.com/en/latest/",
        "History": "https://github.com/highcharts-for-python/highcharts-gantt/blob/master/CHANGES.rst",
        "Homepage": "https://www.highchartspython.com",
        "Source Code": "https://github.com/highcharts-for-python/highcharts-gantt",
        "Sponsor": "https://github.com/sponsors/highcharts-for-python",
        "Support": "https://www.highchartspython.com/get-help"
    },
    "split_keywords": [
        "charts",
        " data visualization",
        " data viz",
        " gantt",
        " graphing",
        " highcharts",
        " highcharts gantt",
        " plotting",
        " project management"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "95ad22fbf6af17b89cbcf21d9a1f98c5510fa89504f253aeeea5201457200cd0",
                "md5": "b134021654c962a1ace6b10002fbc459",
                "sha256": "827bc77a22e2b556e6c4e577e6b98c21af390e969de033274234c73fe9c49ab5"
            },
            "downloads": -1,
            "filename": "highcharts_gantt-1.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b134021654c962a1ace6b10002fbc459",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 163810,
            "upload_time": "2024-04-07T21:42:22",
            "upload_time_iso_8601": "2024-04-07T21:42:22.748732Z",
            "url": "https://files.pythonhosted.org/packages/95/ad/22fbf6af17b89cbcf21d9a1f98c5510fa89504f253aeeea5201457200cd0/highcharts_gantt-1.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "603d9c31edd8953bb098b0b4baf24fcfab3ad91ea8500bf5dd8da622061c7ca5",
                "md5": "4d2c0e151cffc865ce992dc8676a6389",
                "sha256": "5c470d7182ea3d95aba516d0aa881efb4c623cb440672e2f29197570638bed46"
            },
            "downloads": -1,
            "filename": "highcharts_gantt-1.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "4d2c0e151cffc865ce992dc8676a6389",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 11563734,
            "upload_time": "2024-04-07T21:42:19",
            "upload_time_iso_8601": "2024-04-07T21:42:19.808285Z",
            "url": "https://files.pythonhosted.org/packages/60/3d/9c31edd8953bb098b0b4baf24fcfab3ad91ea8500bf5dd8da622061c7ca5/highcharts_gantt-1.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-07 21:42:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "highcharts-for-python",
    "github_project": "highcharts-gantt",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "esprima",
            "specs": [
                [
                    "==",
                    "4.0.1"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.31.0"
                ]
            ]
        },
        {
            "name": "validator-collection",
            "specs": [
                [
                    "==",
                    "1.5.0"
                ]
            ]
        },
        {
            "name": "highcharts-stock",
            "specs": [
                [
                    ">=",
                    "1.7.0"
                ]
            ]
        }
    ],
    "tox": true,
    "lcname": "highcharts-gantt"
}
        
Elapsed time: 2.88320s