Skip to content

Commit 620c468

Browse files
committed
Fixed value validation in DataLabel.overflow. Fixes #198.
1 parent 21dd136 commit 620c468

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

highcharts_core/utility_classes/data_labels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,8 @@ def overflow(self, value):
561561
self._overflow = None
562562
else:
563563
value = value.lower()
564-
if value not in ['justify', 'none']:
565-
raise errors.HighchartsValueError(f'overflow accepts "justify" or "none".'
564+
if value not in ['justify', 'allow', 'none']:
565+
raise errors.HighchartsValueError(f'overflow accepts "justify", "allow", or "none".'
566566
f' Was: {value}')
567567
self._overflow = value
568568

0 commit comments

Comments
 (0)