You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| get_line_area | Get the are of specific line | line: `ctkchart.CTkLine`|``float``|
125
125
| get_lines_area | Get the are of all lines | - |``float``|
126
126
| destroy | Destroy the chart | - |``None``|
127
-
| get_lines_data | Retrieves data points for all lines within a specified range with an optional step value. | start: `int` <br> end: `int` <br> step: `int`|`Dict[ctkchart.CTkLine, Tuple[int]]`|
128
-
get_line_data | Retrieves data points for a specific line within a specified range and step. | line: `ctkchart.CTkLine` <br> start: `int` <br> end: `int`<br> step: `int` | `Tuple[int \| float]` |
129
-
| get_x_axis_visible_point_count | Retrieves the maximum number of data points that can be visible along the X-axis. | - |`int`|
130
-
| get_lines_visible_data | Retrieves currently visible data points for all lines based on the maximum data length and visible points. | - |`Dict[ctkchart.CTkLine, Tuple[int \| float]]`|
131
-
| get_line_visible_data | Retrieves currently visible data points for a specific line. | line: `ctkchart.CTkLine`|`Tuple[int \| float]`|
132
-
133
-
134
-
135
-
127
+
| clear_data | Clears the data for all lines within the chart, ensuring that only the most recent visible data points are retained. If the total data points exceed the maximum visible points, the older data is removed from each line's data. This method ensures that the chart displays only the relevant portion of data based on the maximum visible range. | - |``None``|
128
+
| get_lines_data | Retrieves data points for all lines within a specified range with an optional step value. | start: `int` <br> end: `int` <br> step: `int`|`Dict[ctkchart.CTkLine, Tuple[int]]`|
129
+
get_line_data | Retrieves data points for a specific line within a specified range and step. | line: `ctkchart.CTkLine` <br> start: `int` <br> end: `int`<br> step: `int` | `Tuple[int \| float]` |
130
+
| get_x_axis_visible_point_count | Retrieves the maximum number of data points that can be visible along the X-axis. | - |`int`|
131
+
| get_lines_visible_data | Retrieves currently visible data points for all lines based on the maximum data length and visible points. | - |`Dict[ctkchart.CTkLine, Tuple[int \| float]]`|
132
+
| get_line_visible_data | Retrieves currently visible data points for a specific line. | line: `ctkchart.CTkLine`|`Tuple[int \| float]`|
136
133
137
134
</div>
138
135
@@ -157,7 +154,7 @@ line = ctkchart.CTkLine()
157
154
|[size](#line_color_size)| Optional | Size of the line |``int``| 1<= |
158
155
|[style](#line_style)| Optional | Style of the line |``str`` ("normal", "dashed", "dotted") | "normal" |
159
156
|[style_type](#line_style_type)| Optional | Style type for the line |``tuple[int, int]``| (10, 5),... |
160
-
|[point_highlight](#point_highlight)m | Optional | State of point highlighting |``str`` ("enabled", "disabled") | "disabled" |
157
+
|[point_highlight](#point_highlight)| Optional | State of point highlighting |``str`` ("enabled", "disabled") | "disabled" |
161
158
|[point_highlight_size](#point_highlight)| Optional | Size of the highlighted point |``int``| 1<= |
162
159
|[point_highlight_color](#point_highlight)| Optional | Color of the highlighted point |``tuple[str, str]``\|``str``| "#768df1" |
163
160
|[fill](#fill)| Optional | State of filling |``str`` ("enabled", "disabled") | "disabled" |
@@ -175,10 +172,12 @@ line = ctkchart.CTkLine()
175
172
| reset | reset line object | - |``None``|
176
173
| set_visible | change the visibility of the line | state: ``bool``|``None``|
177
174
| get_visibility | get the visibility of the line | - |``bool``|
175
+
| clear_data | Clears the data for a specific line, ensuring that only the most recent visible data points are retained. If the line's data exceeds the maximum visible points, the older data is trimmed. This method allows each line to independently clean its data, ensuring it remains within the visible range. | - |``None``|
178
176
| destroy | Destroy the line | - |``None``|
179
-
| get_data | Retrieves data points from a specified range with an optional step value. If no parameters are given, it returns all available data. | start: `int` <br> end: `int` <br> step: `int`|`Tuple[int \| float]`|
180
-
| get_current_visible_data | Returns the currently visible data points based on the maximum data length across all lines and the maximum number of visible points. | - |`Tuple[int \| float]`|
181
-
| get_x_axis_visible_point_count | Retrieves the maximum number of data points that can be visible along the X-axis. | - |`int`|
177
+
| get_data | Retrieves data points from a specified range with an optional step value. If no parameters are given, it returns all available data. | start: `int` <br> end: `int` <br> step: `int`|`Tuple[int \| float]`|
178
+
| get_current_visible_data | Returns the currently visible data points based on the maximum data length across all lines and the maximum number of visible points. | - |`Tuple[int \| float]`|
179
+
| get_x_axis_visible_point_count | Retrieves the maximum number of data points that can be visible along the X-axis. | - |`int`|
| clear_data |Clears the data for a specific line, ensuring that only the most recent visible data points are retained. If the line's data exceeds the maximum visible points, the older data is trimmed. This method allows each line to independently clean its data, ensuring it remains within the visible range.| - |``None``|
0 commit comments