Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
da6b8d2
Fixed Jupyter Labs rendering.
hcpchris Mar 31, 2023
071ccce
Fixed timestamp serialization of timezone naive datetime objects.
hcpchris Mar 31, 2023
be8a714
Bumped version number.
hcpchris Mar 31, 2023
79a8cf7
Fixed JS literal serialization bug when string contains JS placeholder.
hcpchris Mar 31, 2023
e5b6c15
Fixed typo in plot_bands serialization.
hcpchris Mar 31, 2023
929b46d
Added null support to color validation.
hcpchris Mar 31, 2023
ddba847
Fixed style deserialization.
hcpchris Mar 31, 2023
e457dc1
Added empty value handling.
hcpchris Apr 1, 2023
33e4a67
Added bool value handling.
hcpchris Apr 1, 2023
73a04fc
Added naive timezone handling for SeriesBase.point_start.
hcpchris Apr 1, 2023
89df485
Fixed .from_array() 1D data handling bug.
hcpchris Apr 1, 2023
7483cb6
Fixed JSON deserialization error in RangeData.from_array()
hcpchris Apr 1, 2023
ebb66ff
Fixed NaN handling bug in .load_from_pandas().
hcpchris Apr 1, 2023
d09c474
Fixed typo.
hcpchris Apr 1, 2023
60a9d21
Modified attribute setting sequence.
hcpchris Apr 1, 2023
d6cafb0
Added Highcharts Error #13 handling to Jupyter JS.
hcpchris Apr 1, 2023
a0218e0
Fixed JSON deserialization in *.from_array()
hcpchris Apr 1, 2023
d23b92c
Fixed module inclusions.
hcpchris Apr 1, 2023
405733e
Fixed validation error.
hcpchris Apr 1, 2023
b9f29f3
Cleaned up the JavaScript imports.
hcpchris Apr 1, 2023
97056c2
Added support for stylesheet links in Jupyter Lbas.
hcpchris Apr 1, 2023
944b90d
Fixed JS literal serialization.
hcpchris Apr 2, 2023
35f3657
Merge branch 'develop' of github.com:highcharts-for-python/highcharts…
hcpchris Apr 2, 2023
3f64c73
Updated change history.
hcpchris Apr 2, 2023
856080d
Merge branch 'master' into develop
hcpchris Apr 2, 2023
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added empty value handling.
  • Loading branch information
hcpchris committed Apr 1, 2023
commit e457dc16808a0a097df283cf04a5f18a572950dc
4 changes: 2 additions & 2 deletions highcharts_core/options/annotations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ def draggable(self, value):
if value is None:
self._draggable = None
else:
value = validators.string(value, allow_empty = True)
value = validators.string(value, allow_empty = True) or ''
value = value.lower()
if value not in ['x', 'xy', 'y']:
if value not in ['x', 'xy', 'y', '']:
raise errors.HighchartsValueError(f'draggable must be "x", "xy", "y", '
f'or "". Was: {value}')
self._draggable = value
Expand Down
2 changes: 1 addition & 1 deletion highcharts_core/options/axes/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def categories(self, value):
if not value:
self._categories = None
else:
self._categories = [validators.string(x) for x in validators.iterable(value)]
self._categories = [validators.string(x, allow_empty = True) or '' for x in validators.iterable(value)]

@property
def date_time_label_formats(self) -> Optional[DateTimeLabelFormats]:
Expand Down
9 changes: 6 additions & 3 deletions highcharts_core/options/axes/title.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from validator_collection import validators

from highcharts_core import errors
from highcharts_core import errors, constants
from highcharts_core.metaclasses import HighchartsMeta


Expand Down Expand Up @@ -211,7 +211,7 @@ def style(self, value):
self._style = validators.string(value, allow_empty = True, coerce_value = True)

@property
def text(self) -> Optional[str]:
def text(self) -> Optional[str | constants.EnforcedNullType]:
"""The actual text of the title.

.. note::
Expand All @@ -225,7 +225,10 @@ def text(self) -> Optional[str]:

@text.setter
def text(self, value):
self._text = validators.string(value, allow_empty = True)
if isinstance(value, constants.EnforcedNullType):
self._text = constants.EnforcedNull
else:
self._text = validators.string(value, allow_empty = True)

@property
def text_align(self) -> Optional[str]:
Expand Down