Skip to content

Commit 42862c9

Browse files
committed
Implemented to_json/from_json roundtrip bugfix. Closes #169.
1 parent 057e0a2 commit 42862c9

File tree

1 file changed

+2
-0
lines changed
  • highcharts_core/options/series/data

1 file changed

+2
-0
lines changed

highcharts_core/options/series/data/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ def from_array(cls, value):
704704

705705
if checkers.is_type(value, 'DataPointCollection'):
706706
return value
707+
elif isinstance(value, dict) and 'dataPoints' in value:
708+
return cls.from_list(value['dataPoints'])
707709

708710
return cls.from_list(value)
709711

0 commit comments

Comments
 (0)