Browse Source

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 year ago
parent
commit
79dbae2d8a

+ 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,