Name | tkchart JSON |
Version |
2.1.4
JSON |
| download |
home_page | None |
Summary | tkchart is a Python library for creating live updating line charts in Tkinter. |
upload_time | 2024-07-04 18:29:36 |
maintainer | None |
docs_url | None |
author | Thisal-D |
requires_python | >=3.0 |
license | Copyright (c) 2024 The Python Packaging Authority Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
tkchart
ctkchart
linechart
ctk linechart
tk linechart
tkinter
customtkinter
line chart in tkinter
line chart in customtkinter
customtkinter graphic-interface
tkinter graphic interface
tkinter widgets
customtkinter widgets
python-chart
tk
ctk
customtkinterassets
tkinterassets
ctk-components
tk-components
line-chart-for-python-tkinter
line-chart-for-python-customtkinter
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<div align="center">
[![tkchart](https://snyk.io/advisor/python/tkchart/badge.svg)](https://snyk.io/advisor/python/tkchart)
# tkchart
[![Downloads](https://static.pepy.tech/badge/tkchart)](https://pepy.tech/project/tkchart) [![Downloads](https://static.pepy.tech/badge/tkchart/month)](https://pepy.tech/project/tkchart) [![Downloads](https://static.pepy.tech/badge/tkchart/week)](https://pepy.tech/project/tkchart)
<img src="https://drive.google.com/thumbnail?id=1YgJhoMequmeKlWmcNo8sgz2RhffPkRVk&sz=w180">
</div>
**<li>tkchart is a Python library for creating live updating line charts in tkinter.</li>**
---
### Features
- **Live Update**: Display live data with line charts.
- **Multiple Lines**: Support for plotting multiple lines on the same chart for easy comparison.
- **Color Customization**: Customize colors to match your application's design or data representation.
- **Font Customization**: Adjust fonts for text elements to enhance readability.
- **Dimension Customization**: Customize chart dimensions to fit various display sizes and layouts.
---
### Importing & Installation
* **Installation**
```
pip install tkchart
```
* **Importing**
``` python
import tkchart
```
---
### Simple Guide
- **import package**
``` python
import tkchart
```
- **Create Line Chart and place the chart**
``` python
chart = tkchart.LineChart(
master=root,
x_axis_values=("a", "b", "c", "d", "e", "f"),
y_axis_values=(100, 900)
)
chart.place(x=10, y=10)
```
- **Create Line**
``` python
line = tkchart.Line(master=chart)
```
- **Display Data**
display data using a loop
``` python
def loop():
while True:
random_data = random.choice(range(100, 900))
chart.show_data(line=line, data=[random_data])
time.sleep(1)
#call the loop as thead
theading.Thread(target=loop).start()
```
---
### Full Code Example
``` python
import tkchart # <- import the package
import tkinter
import random
import threading
import time
#create window
root = tkinter.Tk()
#create chart
chart = tkchart.LineChart(
master=root,
x_axis_values=("a", "b", "c", "d", "e", "f"),
y_axis_values=(100, 900)
)
chart.place(x=10, y=10) #place chrt
#create line
line = tkchart.Line(master=chart)
def loop():
while True:
random_data = random.choice(range(100, 900)) #get random data
chart.show_data(line=line, data=[random_data]) # <- display data using chart
time.sleep(1) #wait 1 sec
#call the loop as thead
threading.Thread(target=loop).start()
root.mainloop()
```
---
### Links
- [**Documentation**](https://github.com/Thisal-D/tkchart/blob/main/documentation/)
- [English](https://github.com/Thisal-D/tkchart/blob/main/documentation/DOCUMENTATION_EN.md)
- [chinese](https://github.com/Thisal-D/tkchart/blob/main/documentation/DOCUMENTATION_CN.md)
- **GitHub Repository :** [tkchart](https://github.com/Thisal-D/tkchart)
---
### Contributors
- [<img src="https://github.com/childeyouyu.png?size=25" width="25">](https://github.com/childeyouyu) [youyu](https://github.com/childeyouyu)
Raw data
{
"_id": null,
"home_page": null,
"name": "tkchart",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.0",
"maintainer_email": null,
"keywords": "tkchart, ctkchart, linechart, ctk linechart, tk linechart, tkinter, customtkinter, line chart in tkinter, line chart in customtkinter, customtkinter graphic-interface, tkinter graphic interface, tkinter widgets, customtkinter widgets, python-chart, tk, ctk, customtkinterassets, tkinterassets, ctk-components, tk-components, line-chart-for-python-tkinter, line-chart-for-python-customtkinter",
"author": "Thisal-D",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/97/5e/b99d214b9950b993da047ac6f6278c14445dafa1424a02c334d6a6dee409/tkchart-2.1.4.tar.gz",
"platform": null,
"description": "<div align=\"center\">\r\n\r\n[![tkchart](https://snyk.io/advisor/python/tkchart/badge.svg)](https://snyk.io/advisor/python/tkchart)\r\n\r\n# tkchart\r\n\r\n[![Downloads](https://static.pepy.tech/badge/tkchart)](https://pepy.tech/project/tkchart) [![Downloads](https://static.pepy.tech/badge/tkchart/month)](https://pepy.tech/project/tkchart) [![Downloads](https://static.pepy.tech/badge/tkchart/week)](https://pepy.tech/project/tkchart)\r\n\r\n<img src=\"https://drive.google.com/thumbnail?id=1YgJhoMequmeKlWmcNo8sgz2RhffPkRVk&sz=w180\">\r\n</div>\r\n\r\n**<li>tkchart is a Python library for creating live updating line charts in tkinter.</li>**\r\n\r\n---\r\n\r\n### Features\r\n\r\n- **Live Update**: Display live data with line charts.\r\n- **Multiple Lines**: Support for plotting multiple lines on the same chart for easy comparison.\r\n- **Color Customization**: Customize colors to match your application's design or data representation.\r\n- **Font Customization**: Adjust fonts for text elements to enhance readability.\r\n- **Dimension Customization**: Customize chart dimensions to fit various display sizes and layouts.\r\n\r\n---\r\n\r\n### Importing & Installation\r\n* **Installation**\r\n ```\r\n pip install tkchart\r\n ```\r\n\r\n* **Importing**\r\n ``` python\r\n import tkchart\r\n ```\r\n\r\n---\r\n\r\n### Simple Guide\r\n- **import package**\r\n ``` python\r\n import tkchart\r\n ```\r\n\r\n- **Create Line Chart and place the chart**\r\n ``` python\r\n chart = tkchart.LineChart(\r\n master=root,\r\n x_axis_values=(\"a\", \"b\", \"c\", \"d\", \"e\", \"f\"),\r\n y_axis_values=(100, 900)\r\n )\r\n chart.place(x=10, y=10)\r\n ```\r\n\r\n- **Create Line**\r\n ``` python\r\n line = tkchart.Line(master=chart)\r\n ```\r\n\r\n- **Display Data**\r\n display data using a loop\r\n ``` python\r\n def loop():\r\n while True:\r\n random_data = random.choice(range(100, 900))\r\n chart.show_data(line=line, data=[random_data])\r\n time.sleep(1)\r\n \r\n #call the loop as thead\r\n theading.Thread(target=loop).start()\r\n ```\r\n\r\n---\r\n\r\n### Full Code Example\r\n``` python\r\nimport tkchart # <- import the package\r\nimport tkinter\r\nimport random\r\nimport threading\r\nimport time\r\n\r\n#create window\r\nroot = tkinter.Tk()\r\n\r\n#create chart\r\nchart = tkchart.LineChart(\r\n master=root,\r\n x_axis_values=(\"a\", \"b\", \"c\", \"d\", \"e\", \"f\"),\r\n y_axis_values=(100, 900)\r\n)\r\nchart.place(x=10, y=10) #place chrt\r\n\r\n#create line\r\nline = tkchart.Line(master=chart)\r\n\r\ndef loop():\r\n while True:\r\n random_data = random.choice(range(100, 900)) #get random data\r\n chart.show_data(line=line, data=[random_data]) # <- display data using chart \r\n time.sleep(1) #wait 1 sec\r\n \r\n#call the loop as thead\r\nthreading.Thread(target=loop).start()\r\n\r\nroot.mainloop()\r\n```\r\n\r\n---\r\n\r\n### Links\r\n\r\n- [**Documentation**](https://github.com/Thisal-D/tkchart/blob/main/documentation/)\r\n - [English](https://github.com/Thisal-D/tkchart/blob/main/documentation/DOCUMENTATION_EN.md)\r\n - [chinese](https://github.com/Thisal-D/tkchart/blob/main/documentation/DOCUMENTATION_CN.md)\r\n- **GitHub Repository :** [tkchart](https://github.com/Thisal-D/tkchart)\r\n\r\n---\r\n\r\n### Contributors\r\n- [<img src=\"https://github.com/childeyouyu.png?size=25\" width=\"25\">](https://github.com/childeyouyu) [youyu](https://github.com/childeyouyu)\r\n",
"bugtrack_url": null,
"license": "Copyright (c) 2024 The Python Packaging Authority Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "tkchart is a Python library for creating live updating line charts in Tkinter.",
"version": "2.1.4",
"project_urls": {
"homepage": "https://github.com/Thisal-D/tkchart",
"issues": "https://github.com/Thisal-D/tkchart/issues",
"repository": "https://github.com/Thisal-D/tkchart"
},
"split_keywords": [
"tkchart",
" ctkchart",
" linechart",
" ctk linechart",
" tk linechart",
" tkinter",
" customtkinter",
" line chart in tkinter",
" line chart in customtkinter",
" customtkinter graphic-interface",
" tkinter graphic interface",
" tkinter widgets",
" customtkinter widgets",
" python-chart",
" tk",
" ctk",
" customtkinterassets",
" tkinterassets",
" ctk-components",
" tk-components",
" line-chart-for-python-tkinter",
" line-chart-for-python-customtkinter"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8a243990c27fa888ab1f52d7dadb3a76988e79e11459692db0f84d82ccab098b",
"md5": "1da295a6ed70a97a42dc2b9c0e3d0aa8",
"sha256": "a3c8328fc2c78a0d1c2c91f445cc00737169fba84d6922078755fe456798b344"
},
"downloads": -1,
"filename": "tkchart-2.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1da295a6ed70a97a42dc2b9c0e3d0aa8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.0",
"size": 24142,
"upload_time": "2024-07-04T18:29:34",
"upload_time_iso_8601": "2024-07-04T18:29:34.732845Z",
"url": "https://files.pythonhosted.org/packages/8a/24/3990c27fa888ab1f52d7dadb3a76988e79e11459692db0f84d82ccab098b/tkchart-2.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "975eb99d214b9950b993da047ac6f6278c14445dafa1424a02c334d6a6dee409",
"md5": "10920c5352546d7d20d4d3efc0ef2a12",
"sha256": "5937027b4240d4c7ac868b2e3c8c1464b678042181e3f756810ae50c323c6bfa"
},
"downloads": -1,
"filename": "tkchart-2.1.4.tar.gz",
"has_sig": false,
"md5_digest": "10920c5352546d7d20d4d3efc0ef2a12",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.0",
"size": 24817,
"upload_time": "2024-07-04T18:29:36",
"upload_time_iso_8601": "2024-07-04T18:29:36.545357Z",
"url": "https://files.pythonhosted.org/packages/97/5e/b99d214b9950b993da047ac6f6278c14445dafa1424a02c334d6a6dee409/tkchart-2.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-04 18:29:36",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Thisal-D",
"github_project": "tkchart",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "tkchart"
}