Ctkchart

Latest version: v2.1.6

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

Scan your dependencies

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` |

2.1.2

**Full Changelog**: https://github.com/Thisal-D/ctkchart/compare/v2...v2.1.2

v2

2.1.0

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.