Skip to content

Commit bf1ce55

Browse files
authored
Merge pull request #33 from highcharts-for-python/develop
PR for v.1.3.0
2 parents a424af7 + cafc0c8 commit bf1ce55

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+155
-168
lines changed

CHANGES.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
Release 1.3.0
2+
=========================================
3+
4+
* **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)
5+
* **ENHANCEMENT:** Added ``__repr__()`` method for Highcharts Core for Python classes.
6+
* **ENHANCEMENT:** Added ``__str__()`` method with special handling for difficult-to-read classes.
7+
* **ENHANCEMENT:** Added ``Chart.get_script_tags()`` to retrieve Javascript ``<script>`` tags.
8+
* **ENHANCEMENT:** Added ``utility_functions.to_snake_case()`` function.
9+
* **BUGFIX:** Fixed incorrect serialization of datetime and Pandas ``Timestamp`` objects in ``.to_dict()`` and ``.to_json()``.
10+
* **BUGFIX:** Fixed incorrect serialization of ``EnforcedNull`` in ``.to_dict()`` and ``.to_json()``.
11+
12+
------------------
13+
114
Release 1.2.3
215
=========================================
316

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Before you install, please be aware of the following "hard" dependencies:
8484
* Python 3.10 or higher
8585
* Highcharts Gantt (JS) v.10.3 or higher (not technically a Python dependency, but
8686
it won't work with earlier versions of Highcharts Stock)
87-
* `Highcharts Stock for Python <https://stock-docs.highchartspython.com/en/latest/>`__ v.1.0 or higher
87+
* `Highcharts Stock for Python <https://stock-docs.highchartspython.com/en/latest/>`__ v.1.3 or higher
8888
* `esprima-python <https://github.com/Kronuz/esprima-python>`__ v.4.0 or higher
8989
* `requests <https://requests.readthedocs.io/en/latest/>`__ v.2.31 or higher
9090
* `validator-collection <https://validator-collection.readthedocs.io/en/latest/>`__

docs/_dependencies.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
Not technically a Python dependency, but obviously **Highcharts Gantt for Python**
3333
will not work properly if your rendering layer does not leverage Highcharts Gantt.
3434

35-
* `highcharts-stock <https://stock-docs.highchartspython.com>`_ v.1.0.0 or higher
35+
* `highcharts-stock <https://stock-docs.highchartspython.com>`_ v.1.3.0 or higher
3636
* `esprima-python <https://github.com/Kronuz/esprima-python>`_ v.4.0 or higher
3737
* `requests <https://requests.readthedocs.io/en/latest/>`_ v.2.31 or higher
3838
* `validator-collection <https://validator-collection.readthedocs.io/en/latest/>`_

highcharts_gantt/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.2.3'
1+
__version__ = '1.3.0'

highcharts_gantt/options/series/data/bar.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from typing import Optional, List
22

3-
from validator_collection import checkers
3+
from validator_collection import checkers, validators
44

55
from highcharts_core.options.series.data.bar import (BarData,
6-
WaterfallData,
7-
WindBarbData,
8-
XRangeData as XRangeDataBase)
6+
WaterfallData,
7+
WindBarbData,
8+
XRangeData as XRangeDataBase)
99

1010
from highcharts_gantt.options.series.data.connect import DataConnection
1111
from highcharts_gantt.decorators import validate_types

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ classifiers = [
5757

5858
requires-python = ">= 3.10"
5959
dependencies = [
60-
"highcharts-stock>=1.0.0-rc1",
60+
"highcharts-stock>=1.3.0",
6161
"esprima>=4.0.1",
6262
"validator-collection>=1.5.0",
6363
"requests>=2.31.0"

requirements.dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ requests==2.31.0
1616
tox==4.0.0
1717
urllib3==1.26.9
1818
validator-collection==1.5.0
19-
highcharts-stock>=1.0.0-rc1
19+
highcharts-stock>=1.3.0

requirements.travis.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ requests==2.31.0
1616
tox==4.0.0
1717
urllib3==1.26.9
1818
validator-collection==1.5.0
19-
highcharts-stock>=1.0.0-rc1
19+
highcharts-stock>=1.3.0

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
esprima==4.0.1
22
requests==2.31.0
33
validator-collection==1.5.0
4-
highcharts-stock>=1.0.0-rc1
4+
highcharts-stock>=1.3.0
Loading
Loading

tests/input_files/series/area/01.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797
symbol: 'circle',
9898
width: 48
9999
},
100-
x: 'some category',
101-
y: 123
100+
y: 123,
101+
name: 'some category'
102102
},
103103
{
104104
dataLabels: {

tests/input_files/series/area/02.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797
symbol: 'circle',
9898
width: 48
9999
},
100-
x: 'some category',
101-
y: 123
100+
y: 123,
101+
name: 'some category'
102102
},
103103
{
104104
dataLabels: {

tests/input_files/series/area/03.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797
symbol: 'circle',
9898
width: 48
9999
},
100-
x: 'some category',
101-
y: 123
100+
y: 123,
101+
name: 'some category'
102102
},
103103
{
104104
dataLabels: {

tests/input_files/series/area/04.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
symbol: 'circle',
100100
width: 48
101101
},
102-
x: 'some category'
102+
name: 'some category'
103103
},
104104
{
105105
dataLabels: {
@@ -200,8 +200,6 @@
200200
symbol: 'circle',
201201
width: 48
202202
},
203-
x: 'some category',
204-
205203
accessibility: {
206204
description: 'Some description goes here',
207205
enabled: true

tests/input_files/series/area/05.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
symbol: 'circle',
100100
width: 48
101101
},
102-
x: 'some category'
102+
name: 'some category'
103103
},
104104
{
105105
dataLabels: {
@@ -200,7 +200,6 @@
200200
symbol: 'circle',
201201
width: 48
202202
},
203-
x: 'some category',
204203

205204
accessibility: {
206205
description: 'Some description goes here',

tests/input_files/series/area/06.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
symbol: 'circle',
100100
width: 48
101101
},
102-
x: 'some category'
102+
name: 'some category'
103103
},
104104
{
105105
dataLabels: {
@@ -200,7 +200,6 @@
200200
symbol: 'circle',
201201
width: 48
202202
},
203-
x: 'some category',
204203

205204
accessibility: {
206205
description: 'Some description goes here',

tests/input_files/series/bar/01.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@
108108
symbol: 'circle',
109109
width: 48
110110
},
111-
x: 'some category',
112-
y: 123
111+
y: 123,
112+
name: 'some category'
113113
}
114114
],
115115
id: 'some-id-goes-here',

tests/input_files/series/bar/02.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797
symbol: 'circle',
9898
width: 48
9999
},
100-
x: 'some category',
101-
y: 123
100+
y: 123,
101+
name: 'some category'
102102
},
103103
{
104104
dataLabels: {
@@ -197,8 +197,8 @@
197197
symbol: 'circle',
198198
width: 48
199199
},
200-
x: 'some category',
201-
y: 123
200+
y: 123,
201+
name: 'some category'
202202
}
203203
],
204204
id: 'some-id-goes-here',

tests/input_files/series/bar/03.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
symbol: 'circle',
100100
width: 48
101101
},
102-
x: 'some category'
102+
name: 'some category'
103103
},
104104
{
105105
dataLabels: {
@@ -200,7 +200,7 @@
200200
symbol: 'circle',
201201
width: 48
202202
},
203-
x: 'some category'
203+
name: 'some category'
204204
}
205205
],
206206
id: 'some-id-goes-here',

tests/input_files/series/bar/04.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@
9999
symbol: 'circle',
100100
width: 48
101101
},
102-
x: 'some category',
103-
y: 123
102+
y: 123,
103+
name: 'some category'
104104
},
105105
{
106106
z: 456,
@@ -201,8 +201,8 @@
201201
symbol: 'circle',
202202
width: 48
203203
},
204-
x: 'some category',
205-
y: 123
204+
y: 123,
205+
name: 'some category'
206206
}
207207
],
208208
id: 'some-id-goes-here',

tests/input_files/series/bar/06.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
100100
symbol: 'circle',
101101
width: 48
102102
},
103-
x: 'some category',
104-
y: 123
103+
y: 123,
104+
name: 'some category'
105105
},
106106
{
107107
direction: 45,
@@ -203,8 +203,8 @@
203203
symbol: 'circle',
204204
width: 48
205205
},
206-
x: 'some category',
207-
y: 123
206+
y: 123,
207+
name: 'some category'
208208
}
209209
],
210210
id: 'some-id-goes-here',

tests/input_files/series/boxplot/01.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@
107107
symbol: 'circle',
108108
width: 48
109109
},
110-
x: 'some category',
111-
y: 123
110+
y: 123,
111+
name: 'some category'
112112
}
113113
],
114114
id: 'some-id-goes-here',

tests/input_files/series/boxplot/02.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
symbol: 'circle',
100100
width: 48
101101
},
102-
x: 'some category'
102+
name: 'some category'
103103
}
104104
],
105105
id: 'some-id-goes-here',

tests/input_files/series/bubble/01.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@
9999
symbol: 'circle',
100100
width: 48
101101
},
102-
x: 'some category',
103-
y: 123
102+
y: 123,
103+
name: 'some category'
104104
}
105105
],
106106

tests/input_files/series/bullet/01.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@
111111
symbol: 'circle',
112112
width: 48
113113
},
114-
x: 'some category',
115-
y: 123
114+
y: 123,
115+
name: 'some category'
116116
},
117117
{
118118
target: 123,
@@ -225,8 +225,8 @@
225225
symbol: 'circle',
226226
width: 48
227227
},
228-
x: 'some category',
229-
y: 123
228+
y: 123,
229+
name: 'some category'
230230
}
231231
],
232232
targetOptions: {

tests/input_files/series/data/gantt/02.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
collapsed: false,
33
completed: 0.5,
44
dependency: null,
5-
end: 1675141282.0,
65
milestone: false,
76
parent: 'some-id-goes-here',
8-
start: 1675141282.0,
97
y: 123,
108

119
accessibility: {

tests/input_files/series/dumbbell/01.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@
101101
symbol: 'circle',
102102
width: 48
103103
},
104-
x: 'some category',
105104
y: 123,
106105

107106
accessibility: {

tests/input_files/series/heatmap/01.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
100100
symbol: 'circle',
101101
width: 48
102102
},
103-
x: 'some category',
104-
y: 123
103+
y: 123,
104+
name: 'some category'
105105
}
106106
],
107107

tests/input_files/series/heatmap/02.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
100100
symbol: 'circle',
101101
width: 48
102102
},
103-
x: 'some category',
104-
y: 123
103+
y: 123,
104+
name: 'some category'
105105
}
106106
],
107107

tests/input_files/series/scatter/01.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797
symbol: 'circle',
9898
width: 48
9999
},
100-
x: 'some category',
101-
y: 123
100+
y: 123,
101+
name: 'some category'
102102
}
103103
],
104104
jitter: {

tests/input_files/series/scatter/02.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797
symbol: 'circle',
9898
width: 48
9999
},
100-
x: 'some category',
101-
y: 123
100+
y: 123,
101+
name: 'some category'
102102
}
103103
],
104104
jitter: {

tests/input_files/series/spline/01.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797
symbol: 'circle',
9898
width: 48
9999
},
100-
x: 'some category',
101-
y: 123
100+
y: 123,
101+
name: 'some category'
102102
}
103103
],
104104
colorAxis: 1,

0 commit comments

Comments
 (0)