Skip to content

Commit e136fcd

Browse files
committed
Updated VectorOptions.line_width documentation.
1 parent d576a06 commit e136fcd

File tree

1 file changed

+14
-1
lines changed
  • highcharts_core/options/plot_options

1 file changed

+14
-1
lines changed

highcharts_core/options/plot_options/vector.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,18 @@ def cluster(self) -> Optional[ClusterOptions]:
5858
def cluster(self, value):
5959
self._cluster = value
6060

61+
@property
62+
def line_width(self) -> Optional[int | float | Decimal]:
63+
"""The line width for each vector arrow. Defaults to ``2``.
64+
65+
:rtype: numeric or :obj:`None <python:None>`
66+
"""
67+
return self._line_width
68+
69+
@line_width.setter
70+
def line_width(self, value):
71+
self._line_width = validators.numeric(value, allow_empty = True)
72+
6173
@property
6274
def rotation_origin(self) -> Optional[str]:
6375
"""What part of the vector it should be rotated around. Defaults to ``'center'``.
@@ -164,7 +176,8 @@ def _get_kwargs_from_dict(cls, as_dict):
164176
'line_width': as_dict.get('lineWidth', None),
165177
'negative_color': as_dict.get('negativeColor', None),
166178
'point_description_format': as_dict.get('pointDescriptionFormat', None),
167-
'point_interval': as_dict.get('pointInterval', None), 'point_interval_unit': as_dict.get('pointIntervalUnit', None),
179+
'point_interval': as_dict.get('pointInterval', None),
180+
'point_interval_unit': as_dict.get('pointIntervalUnit', None),
168181
'point_placement': as_dict.get('pointPlacement', None),
169182
'point_start': as_dict.get('pointStart', None),
170183
'relative_x_value': as_dict.get('relativeXValue', None),

0 commit comments

Comments
 (0)