Skip to content

Commit 969da40

Browse files
committed
Fixed bug in ConnectionData.from_array().
1 parent f287315 commit 969da40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

highcharts_core/options/series/data/connections.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ def from_array(cls, value):
202202
as_obj = cls.from_dict(item)
203203
elif item is None or isinstance(item, constants.EnforcedNullType):
204204
as_obj = cls()
205+
elif len(item) == 2:
206+
as_obj = cls(from_ = item[0],
207+
to = item[1])
205208
else:
206209
raise errors.HighchartsValueError(f'each data point supplied must either '
207210
f'be a Connection Data Point or be '

0 commit comments

Comments
 (0)