Skip to content

Commit 70f1cdf

Browse files
authored
Merge pull request #24 from highcharts-for-python/23-align-highcharts-gantt-for-python-to-highcharts-gantt-js-v111
PR for v.1.2.0
2 parents ee90547 + 804b5bf commit 70f1cdf

18 files changed

+55
-22
lines changed

CHANGES.rst

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
Release 1.2.0
22
=========================================
33

4-
* **ENHANCEMENT:** Added support for the inclusion of scripts based on features used in the chart (#7).
5-
* **ENHANCEMENT:** Added ``dict`` support to ``options.series.labels.SeriesLabel.style`` and ``utility_classes.data_labels.DataLabel.style``.
6-
7-
------------------
4+
* **ENHANCEMENT:** Align the API to **Highcharts (JS) v.11.1** (#22). In particular, this includes:
85

9-
Release 1.1.1
10-
=========================================
6+
* Changes inherited from **Highcharts Core for Python v.1.2.0**. See `here <https://core-docs.highchartspython.com/en/latest/history.html#release-1-2-0>`__.
117

12-
* **FIXED:** Problem when producing a JS literal, with the JS code inserting an unnecessary ``new``.
13-
* **ENHANCEMENT:** Added more elegant error handling when something goes wrong displaying a chart in Jupyter.
8+
* **ENHANCEMENT:** Added support for the inclusion of scripts based on features used in the chart (#7).
9+
* **ENHANCEMENT:** Added ``dict`` support to ``.style`` property on labels and titles.
10+
* **DOCS:** Various documentation updates and fixes.
11+
* **DEPENDENCY:** Bumped ``requests`` version for security patch.
1412

15-
---------------------
13+
---------------
1614

1715
Release 1.1.0
1816
=========================================

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ JavaScript data visualization library.
1717
* The **Highcharts Export Server** - enabling the programmatic creation of static
1818
(downloadable) data visualizations
1919

20-
The library supports Highcharts (JS) v.10.2 and higher, including Highcharts (JS) v.11.0.0.
20+
The library supports Highcharts (JS) v.10.2 and higher, including Highcharts (JS) v.11.1.0.
2121

2222
**Highcharts Gantt for Python** is fully integrated with the broader Python ecosystem,
2323
featuring native integrations with:
@@ -86,7 +86,7 @@ Before you install, please be aware of the following "hard" dependencies:
8686
it won't work with earlier versions of Highcharts Stock)
8787
* `Highcharts Stock for Python <https://stock-docs.highchartspython.com/en/latest/>`__ v.1.0 or higher
8888
* `esprima-python <https://github.com/Kronuz/esprima-python>`__ v.4.0 or higher
89-
* `requests <https://requests.readthedocs.io/en/latest/>`__ v.2.28 or higher
89+
* `requests <https://requests.readthedocs.io/en/latest/>`__ v.2.31 or higher
9090
* `validator-collection <https://validator-collection.readthedocs.io/en/latest/>`__
9191
v.1.5 or higher
9292

docs/_dependencies.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
* `highcharts-stock <https://stock-docs.highchartspython.com>`_ v.1.0.0 or higher
3636
* `esprima-python <https://github.com/Kronuz/esprima-python>`_ v.4.0 or higher
37-
* `requests <https://requests.readthedocs.io/en/latest/>`_ v.2.28 or higher
37+
* `requests <https://requests.readthedocs.io/en/latest/>`_ v.2.31 or higher
3838
* `validator-collection <https://validator-collection.readthedocs.io/en/latest/>`_
3939
v.1.5 or higher
4040

docs/_static/tiledwebmap-example.png

383 KB
Loading

docs/demos.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ we recommend that you click the following badge:
7474
:target: https://mybinder.org/v2/gh/highcharts-for-python/highcharts-for-python-demos/HEAD
7575
:alt: Binder: Highcharts for Python Demos
7676

77-
This will clone the `Highcharts for Python Demos <https://github.com/highcharts-for-python-demos>`__
77+
This will clone the `Highcharts for Python Demos <https://github.com/highcharts-for-python/highcharts-for-python-demos>`__
7878
source repository within a Docker image, and launch `Jupyter Lab <https://jupyter.org>`__ within that
7979
Docker container. This will then let you browse, edit, and run any of the Jupyter Notebooks contained
80-
within the `Highcharts for Python Demos <https://github.com/highcharts-for-python-demos>`__ repo.
80+
within the `Highcharts for Python Demos <https://github.com/highcharts-for-python/highcharts-for-python-demos>`__ repo.
8181

8282
How the Demos are Organized
8383
==============================
@@ -122,4 +122,4 @@ Running Demos Locally
122122
.. note::
123123

124124
You can run the demos locally by following instructions in the
125-
`Highcharts for Python Demos <https://github.com/highcharts-for-python-demos>`__ Github repo's README.
125+
`Highcharts for Python Demos <https://github.com/highcharts-for-python/highcharts-for-python-demos>`__ Github repo's README.

docs/glossary.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,24 @@ Glossary
172172

173173
* `Highcharts Node Export Server Documentation <https://github.com/highcharts/node-export-server>`__
174174

175+
Format String
176+
.. versionadded: v.1.2.0
177+
178+
Format strings are templates for labels introduced in Highcharts for Python v.1.2.
179+
Since Highcharts (JS) v.11.1, format strings support logic.
180+
181+
We recommend using format strings if you:
182+
183+
* Need to save the chart configuration to JSON.
184+
* Need to provide a GUI for end users so that callbacks are not practical, or XSS is a concern.
185+
* Need to send the charts over to our export server to execute (all callbacks are stripped out).
186+
* Are creating a wrapper for another programming language than JavaScript.
187+
188+
.. seealso::
189+
190+
For a full overview over templating in format strings, please see the Highcharts (JS)
191+
`Templating <https://www.highcharts.com/docs/chart-concepts/templating>`__ article.
192+
175193
Formatter
176194
A particular type of :term:`callback function` used extensively in Highcharts. In
177195
general terms, a formatter receives a context (for example a data point) and returns

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Highcharts Gantt for Python
3838

3939
.. sidebar:: Version Compatibility
4040

41-
**Latest Highcharts (JS) version supported:** v.11.0.0
41+
**Latest Highcharts (JS) version supported:** v.11.1.0
4242

4343
**Highcharts Gantt for Python** is designed to be compatible with:
4444

docs/visualizations.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,14 +692,22 @@ to visualize your data.
692692
:class:`highcharts_maps.options.plot_options.mapline.MapLineOptions`
693693

694694
:class:`highcharts_maps.options.series.mapline.MapLineSeries`
695-
* - **Map**
695+
* - **Map Point**
696696
- .. figure:: _static/mappoint-example.png
697697
:alt: Map Point Example Chart
698698
:width: 100%
699699

700700
:class:`highcharts_maps.options.plot_options.mappoint.MapPointOptions`
701701

702702
:class:`highcharts_maps.options.series.mappoint.MapPointSeries`
703+
* - **Tiled Web Map**
704+
- .. figure:: _static/tiledwebmap-example.png
705+
:alt: Tiled Web Map Example Chart
706+
:width: 100%
707+
708+
:class:`highcharts_maps.options.plot_options.tiledwebmap.TiledWebMapOptions`
709+
710+
:class:`highcharts_maps.options.series.tiledwebmap.TiledWebMapSeries`
703711

704712
.. tab:: Gantt
705713

highcharts_gantt/options/axes/x_axis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def _get_kwargs_from_dict(cls, as_dict):
8282
'categories': as_dict.get('categories', None),
8383
'ceiling': as_dict.get('ceiling', None),
8484
'class_name': as_dict.get('className', None),
85+
'crossing': as_dict.get('crossing', None),
8586
'date_time_label_formats': as_dict.get('dateTimeLabelFormats', None),
8687
'end_on_tick': as_dict.get('endOnTick', None),
8788
'events': as_dict.get('events', None),

highcharts_gantt/options/axes/y_axis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def _get_kwargs_from_dict(cls, as_dict):
8484
'categories': as_dict.get('categories', None),
8585
'ceiling': as_dict.get('ceiling', None),
8686
'class_name': as_dict.get('className', None),
87+
'crossing': as_dict.get('crossing', None),
8788
'date_time_label_formats': as_dict.get('dateTimeLabelFormats', None),
8889
'end_on_tick': as_dict.get('endOnTick', None),
8990
'events': as_dict.get('events', None),

0 commit comments

Comments
 (0)