Bug Fixes:

- Screen now defaults to the active screen rather than the `0` screen.
- `null` values given in chart data are now removed and replaced with whitespace.
- Closing the chart window now cleanly exits.
- Fixed a bug causing the `offset` parameter to be greater than `0` when there is no offset.
This commit is contained in:
louisnw
2023-09-29 12:03:49 +01:00
parent d43e7c24e7
commit 2bd4c7c037
6 changed files with 19 additions and 10 deletions

View File

@ -134,6 +134,7 @@ class SeriesCommon(Pane):
self._last_bar = None
self.name = name
self.num_decimals = 2
self.offset = 0
def _set_interval(self, df: pd.DataFrame):
if not pd.api.types.is_datetime64_any_dtype(df['time']):
@ -155,7 +156,7 @@ class SeriesCommon(Pane):
value = value.total_seconds()
if value == 0:
continue
elif value > self._interval:
elif value >= self._interval:
break
self.offset = value
break