Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
Release 1.3.0
=========================================

* **ENHANCEMENT:** Modified the way that data points are serialized to JavaScript literal objects. Now, they are serialized to a JavaScript array if their configured properties are those that Highcharts (JS) supports in JavaScript array notation. Otherwise, the code falls back to serialize the data point as a JavaScript object literal. This change is intended to improve performance and reduce the size of the serialized data. (#32)
* **ENHANCEMENT:** Added ``__repr__()`` method for Highcharts Core for Python classes.
* **ENHANCEMENT:** Added ``__str__()`` method with special handling for difficult-to-read classes.
* **ENHANCEMENT:** Added ``Chart.get_script_tags()`` to retrieve Javascript ``<script>`` tags.
* **ENHANCEMENT:** Added ``utility_functions.to_snake_case()`` function.
* **BUGFIX:** Fixed incorrect serialization of datetime and Pandas ``Timestamp`` objects in ``.to_dict()`` and ``.to_json()``.
* **BUGFIX:** Fixed incorrect serialization of ``EnforcedNull`` in ``.to_dict()`` and ``.to_json()``.

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

Release 1.2.3
=========================================

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ 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.0 or higher
* `Highcharts Stock for Python <https://stock-docs.highchartspython.com/en/latest/>`__ v.1.3 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/>`__
Expand Down
2 changes: 1 addition & 1 deletion docs/_dependencies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
Not technically a Python dependency, but obviously **Highcharts Gantt for Python**
will not work properly if your rendering layer does not leverage Highcharts Gantt.

* `highcharts-stock <https://stock-docs.highchartspython.com>`_ v.1.0.0 or higher
* `highcharts-stock <https://stock-docs.highchartspython.com>`_ v.1.3.0 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/>`_
Expand Down
2 changes: 1 addition & 1 deletion highcharts_gantt/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.2.3'
__version__ = '1.3.0'
8 changes: 4 additions & 4 deletions highcharts_gantt/options/series/data/bar.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from typing import Optional, List

from validator_collection import checkers
from validator_collection import checkers, validators

from highcharts_core.options.series.data.bar import (BarData,
WaterfallData,
WindBarbData,
XRangeData as XRangeDataBase)
WaterfallData,
WindBarbData,
XRangeData as XRangeDataBase)

from highcharts_gantt.options.series.data.connect import DataConnection
from highcharts_gantt.decorators import validate_types
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ classifiers = [

requires-python = ">= 3.10"
dependencies = [
"highcharts-stock>=1.0.0-rc1",
"highcharts-stock>=1.3.0",
"esprima>=4.0.1",
"validator-collection>=1.5.0",
"requests>=2.31.0"
Expand Down
2 changes: 1 addition & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ requests==2.31.0
tox==4.0.0
urllib3==1.26.9
validator-collection==1.5.0
highcharts-stock>=1.0.0-rc1
highcharts-stock>=1.3.0
2 changes: 1 addition & 1 deletion requirements.travis.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ requests==2.31.0
tox==4.0.0
urllib3==1.26.9
validator-collection==1.5.0
highcharts-stock>=1.0.0-rc1
highcharts-stock>=1.3.0
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
esprima==4.0.1
requests==2.31.0
validator-collection==1.5.0
highcharts-stock>=1.0.0-rc1
highcharts-stock>=1.3.0
Binary file modified tests/input_files/headless_export/output/test-basic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/input_files/headless_export/output/test-with-series-types.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/input_files/series/area/01.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
},
{
dataLabels: {
Expand Down
4 changes: 2 additions & 2 deletions tests/input_files/series/area/02.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
},
{
dataLabels: {
Expand Down
4 changes: 2 additions & 2 deletions tests/input_files/series/area/03.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
},
{
dataLabels: {
Expand Down
4 changes: 1 addition & 3 deletions tests/input_files/series/area/04.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
symbol: 'circle',
width: 48
},
x: 'some category'
name: 'some category'
},
{
dataLabels: {
Expand Down Expand Up @@ -200,8 +200,6 @@
symbol: 'circle',
width: 48
},
x: 'some category',

accessibility: {
description: 'Some description goes here',
enabled: true
Expand Down
3 changes: 1 addition & 2 deletions tests/input_files/series/area/05.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
symbol: 'circle',
width: 48
},
x: 'some category'
name: 'some category'
},
{
dataLabels: {
Expand Down Expand Up @@ -200,7 +200,6 @@
symbol: 'circle',
width: 48
},
x: 'some category',

accessibility: {
description: 'Some description goes here',
Expand Down
3 changes: 1 addition & 2 deletions tests/input_files/series/area/06.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
symbol: 'circle',
width: 48
},
x: 'some category'
name: 'some category'
},
{
dataLabels: {
Expand Down Expand Up @@ -200,7 +200,6 @@
symbol: 'circle',
width: 48
},
x: 'some category',

accessibility: {
description: 'Some description goes here',
Expand Down
4 changes: 2 additions & 2 deletions tests/input_files/series/bar/01.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
}
],
id: 'some-id-goes-here',
Expand Down
8 changes: 4 additions & 4 deletions tests/input_files/series/bar/02.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
},
{
dataLabels: {
Expand Down Expand Up @@ -197,8 +197,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
}
],
id: 'some-id-goes-here',
Expand Down
4 changes: 2 additions & 2 deletions tests/input_files/series/bar/03.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
symbol: 'circle',
width: 48
},
x: 'some category'
name: 'some category'
},
{
dataLabels: {
Expand Down Expand Up @@ -200,7 +200,7 @@
symbol: 'circle',
width: 48
},
x: 'some category'
name: 'some category'
}
],
id: 'some-id-goes-here',
Expand Down
8 changes: 4 additions & 4 deletions tests/input_files/series/bar/04.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
},
{
z: 456,
Expand Down Expand Up @@ -201,8 +201,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
}
],
id: 'some-id-goes-here',
Expand Down
8 changes: 4 additions & 4 deletions tests/input_files/series/bar/06.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
},
{
direction: 45,
Expand Down Expand Up @@ -203,8 +203,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
}
],
id: 'some-id-goes-here',
Expand Down
4 changes: 2 additions & 2 deletions tests/input_files/series/boxplot/01.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
}
],
id: 'some-id-goes-here',
Expand Down
2 changes: 1 addition & 1 deletion tests/input_files/series/boxplot/02.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
symbol: 'circle',
width: 48
},
x: 'some category'
name: 'some category'
}
],
id: 'some-id-goes-here',
Expand Down
4 changes: 2 additions & 2 deletions tests/input_files/series/bubble/01.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
}
],

Expand Down
8 changes: 4 additions & 4 deletions tests/input_files/series/bullet/01.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
},
{
target: 123,
Expand Down Expand Up @@ -225,8 +225,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
}
],
targetOptions: {
Expand Down
2 changes: 0 additions & 2 deletions tests/input_files/series/data/gantt/02.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
collapsed: false,
completed: 0.5,
dependency: null,
end: 1675141282.0,
milestone: false,
parent: 'some-id-goes-here',
start: 1675141282.0,
y: 123,

accessibility: {
Expand Down
1 change: 0 additions & 1 deletion tests/input_files/series/dumbbell/01.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123,

accessibility: {
Expand Down
4 changes: 2 additions & 2 deletions tests/input_files/series/heatmap/01.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
}
],

Expand Down
4 changes: 2 additions & 2 deletions tests/input_files/series/heatmap/02.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
}
],

Expand Down
4 changes: 2 additions & 2 deletions tests/input_files/series/scatter/01.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
}
],
jitter: {
Expand Down
4 changes: 2 additions & 2 deletions tests/input_files/series/scatter/02.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
}
],
jitter: {
Expand Down
4 changes: 2 additions & 2 deletions tests/input_files/series/spline/01.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
symbol: 'circle',
width: 48
},
x: 'some category',
y: 123
y: 123,
name: 'some category'
}
],
colorAxis: 1,
Expand Down
Loading