Enhancements:
- added the `create_histogram` method and the `Histogram` object. - added the `round` parameter to `trend_line` and `ray_line` - chart.set can now be given line data. Bug Fixes: - `NaN` values can now be given when setting data, and will leave a blank space in the data. - `resize` will now change the chart wrapper’s size as well as the chart itself.
This commit is contained in:
@ -33,6 +33,11 @@ def parse_event_message(window, string):
|
||||
return func, args
|
||||
|
||||
|
||||
def js_data(data: Union[pd.DataFrame, pd.Series]):
|
||||
orient = 'columns' if isinstance(data, pd.Series) else 'records'
|
||||
return data.to_json(orient=orient, default_handler=lambda x: 'null' if pd.isna(x) else x)
|
||||
|
||||
|
||||
def jbool(b: bool): return 'true' if b is True else 'false' if b is False else None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user