浏览代码

add markers mode to decimators (#624)

Co-authored-by: Fred Lefévère-Laoide <Fred.Lefevere-Laoide@Taipy.io>
Fred Lefévère-Laoide 1 年之前
父节点
当前提交
79dbae2d8a
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      taipy/gui/data/decimator/lttb.py
  2. 1 1
      taipy/gui/data/decimator/minmax.py
  3. 1 1
      taipy/gui/data/decimator/rdp.py

+ 1 - 1
taipy/gui/data/decimator/lttb.py

@@ -26,7 +26,7 @@ class LTTB(Decimator):
     This class can only be used with line charts.
     """
 
-    _CHART_MODES = ["lines+markers"]
+    _CHART_MODES = ["lines+markers", "lines", "markers"]
 
     def __init__(self, n_out: int, threshold: t.Optional[int] = None, zoom: t.Optional[bool] = True) -> None:
         """Initialize a new `LTTB`.

+ 1 - 1
taipy/gui/data/decimator/minmax.py

@@ -25,7 +25,7 @@ class MinMaxDecimator(Decimator):
     This class can only be used with line charts.
     """
 
-    _CHART_MODES = ["lines+markers"]
+    _CHART_MODES = ["lines+markers", "lines", "markers"]
 
     def __init__(self, n_out: int, threshold: t.Optional[int] = None, zoom: t.Optional[bool] = True):
         """Initialize a new `MinMaxDecimator`.

+ 1 - 1
taipy/gui/data/decimator/rdp.py

@@ -26,7 +26,7 @@ class RDP(Decimator):
     This class can only be used with line charts.
     """
 
-    _CHART_MODES = ["lines+markers"]
+    _CHART_MODES = ["lines+markers", "lines", "markers"]
 
     def __init__(
         self,