Ctkchart

Latest version: v2.1.8

Safety actively analyzes 703031 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

2.1.8

🐞 Bug Fixes

CTkLineChart bug fixes
- Fix methods:
- `get_lines_visible_data` – Fixed visibility data retrieval issue
- `get_line_visible_data` – Fixed visibility data retrieval issue

CTkLine bug fixes
- Fix methods:
- `get_current_visible_data` – Fixed visibility data retrieval issue

---

* v2.1.8-patch-for-v2.1.7 by Thisal-D in [Pull Request 19](https://github.com/Thisal-D/ctkchart/pull/19)
**Full Changelog**: [Compare v2.1.7...v2.1.8](https://github.com/Thisal-D/ctkchart/compare/v2.1.7...v2.1.8)

2.1.7

🔥 New Features

Enhancements to `CTkLineChart`
- Added new methods for improved data retrieval:
- `get_lines_data` – Retrieve all lines' data
- `get_line_data` – Fetch data of a specific line
- `get_x_axis_visible_point_count` – Get the count of visible points on the X-axis
- `get_lines_visible_data` – Access all visible lines' data
- `get_line_visible_data` – Obtain visible data of a specific line

Enhancements to `CTkLine`
- Introduced new methods for better line data management:
- `get_data` – Retrieve the full dataset of a line
- `get_current_visible_data` – Fetch currently visible data of a line
- `get_x_axis_visible_point_count` – Get the visible X-axis point count

📖 **Check out the full details:**
- 🔗 [English Changelog](https://github.com/Thisal-D/ctkchart/blob/main/CHANGES_en.md)
- 🔗 [Chinese Changelog](https://github.com/Thisal-D/ctkchart/blob/main/CHANGES_zh.md)


🚀 **Release by** [Thisal-D](https://github.com/Thisal-D) in [PR #18](https://github.com/Thisal-D/ctkchart/pull/18)

2.1.6

What's Changed

🛠️ Bug Fixes

[Line Chart Theme Initialization Issue](https://github.com/Thisal-D/ctkchart/issues/15)

A thank you to **[Bromson3105](https://github.com/Bromson3105)** for reporting and investigating the issue related to theme configuration for `CTkLineChart`. The problem occurred when the `ThemeManager` was initialized before creating chart widgets, resulting in the error:

`
Line Chart theme configure failed: 'CTkLineChart' object has no attribute '_CTkLineChart__y_axis_frame'
`

**Fix:**
The `ThemeManager` initialization has been updated to run *after* the chart object is created, resolving the issue.

**Steps to Update:**
To get the fix, update to the latest version by running:
bash
pip install --upgrade ctkchart


Feel free to test the updated release and share any further feedback! 🎉

2.1.5

What's Changed

- New Method Added to CTkLineChart Object
| Method Name | Description | Parameters | Return Type |
|------------------|------------------------------------------------------------|----------------|-------------|
| `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` |

- New Method Added to CTkLine Object
| Method Name | Description | Parameters | Return Type |
|------------------|------------------------------------------------------------|----------------|-------------|
| `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` |

2.1.4

What's Changed

- New Method Added to CTkLineChart Object
| Method Name | Description | Parameters | Return Type |
|---------------------|-----------------------------------------------|----------------|-------------|
| `get_line_area` | Get the are of specific line | line: `ctkchart.CTkLine` | ``float`` |
| `get_lines_area` | Get the are of all lines | - | ``float`` |

2.1.3

What's Changed
- New Method Added to CTkLineChart Object
| Method Name | Description | Parameters | Return Type |
|------------------|------------------------------------------------------------|----------------|-------------|
| `destroy` | Destroy the line chart, along with its lines | - | `None` |

- New Method Added to CTkLine Object
| Method Name | Description | Parameters | Return Type |
|------------------|------------------------------------------------------------|----------------|-------------|
| `destroy` | Destroy the line | - | `None` |

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.