Skip to content

Commit 8bc5996

Browse files
authored
Merge pull request #44 from highcharts-for-python/develop
PR for v.1.5.1
2 parents 590a327 + 4fceda0 commit 8bc5996

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

CHANGES.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11

2+
Release 1.5.1
3+
=========================================
4+
5+
* **BUGFIX:** Fixed incorrect assignment of ``options.chart.map`` value (#42).
6+
7+
-----------------------
8+
29
Release 1.5.0
310
=========================================
411

highcharts_maps/__version__.py

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

highcharts_maps/chart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ def from_geopandas(cls,
11541154
if not options.chart:
11551155
options.chart = ChartOptions()
11561156

1157-
options.chart.map_data = MapData.from_geodataframe(as_gdf = gdf)
1157+
options.chart.map = MapData.from_geodataframe(as_gdf = gdf)
11581158

11591159
instance = cls(**chart_kwargs)
11601160
instance.options = options
@@ -1428,7 +1428,7 @@ def from_map_data(cls,
14281428
if not options.chart:
14291429
options.chart = ChartOptions()
14301430

1431-
options.chart.map_data = map_data
1431+
options.chart.map = map_data
14321432

14331433
instance = cls(**chart_kwargs)
14341434
instance.options = options

highcharts_maps/options/chart/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def map(self) -> Optional[str | MapData | AsyncMapData | VariableName | List[Map
5656
@map.setter
5757
def map(self, value):
5858
if not value:
59-
self._map_data = None
59+
self._map = None
6060
elif checkers.is_iterable(value, forbid_literals = (str, bytes, dict)):
6161
cleaned_value = []
6262
for item in value:

0 commit comments

Comments
 (0)