tkchart


Nametkchart JSON
Version 2.1.2 PyPI version JSON
download
home_pageNone
Summarytkchart is a Python library for creating live updating line charts in Tkinter.
upload_time2024-04-27 04:51:40
maintainerNone
docs_urlNone
authorThisal-D
requires_python>=3.0
licenseCopyright (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)

<img src="https://drive.google.com/thumbnail?id=16Y00GIKEpmC4t3gAlUv7IJutE4yzFszo&sz=w2500" style="width: 100%">

[![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=1uZJAjUZPIt79V0FMZ6KpF_x1ln7LFNmg&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/40/20/b3adaa80e94d7c5cc88c57876909ab1743ced47c6e4fe3fcf7d0d060f126/tkchart-2.1.2.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<img src=\"https://drive.google.com/thumbnail?id=16Y00GIKEpmC4t3gAlUv7IJutE4yzFszo&sz=w2500\" style=\"width: 100%\">\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=1uZJAjUZPIt79V0FMZ6KpF_x1ln7LFNmg&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.2",
    "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": "41882034e790828404cb818c10f60b9a08305801dadd53f0d27dd71c648ea3e7",
                "md5": "11e9eb9acf238c524431345f85f600e8",
                "sha256": "66d93efd692639304edadc219521b69368beca6a195e92a4c5f4a81d1c514539"
            },
            "downloads": -1,
            "filename": "tkchart-2.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "11e9eb9acf238c524431345f85f600e8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.0",
            "size": 23076,
            "upload_time": "2024-04-27T04:51:38",
            "upload_time_iso_8601": "2024-04-27T04:51:38.033292Z",
            "url": "https://files.pythonhosted.org/packages/41/88/2034e790828404cb818c10f60b9a08305801dadd53f0d27dd71c648ea3e7/tkchart-2.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4020b3adaa80e94d7c5cc88c57876909ab1743ced47c6e4fe3fcf7d0d060f126",
                "md5": "096f5ffb389fc16c6f6ef380d8392432",
                "sha256": "489672803b0d66a62cfb3146fe22c21ddd1481d93e04deccec0f9fb5b8a4e1c0"
            },
            "downloads": -1,
            "filename": "tkchart-2.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "096f5ffb389fc16c6f6ef380d8392432",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.0",
            "size": 23750,
            "upload_time": "2024-04-27T04:51:40",
            "upload_time_iso_8601": "2024-04-27T04:51:40.181610Z",
            "url": "https://files.pythonhosted.org/packages/40/20/b3adaa80e94d7c5cc88c57876909ab1743ced47c6e4fe3fcf7d0d060f126/tkchart-2.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-27 04:51:40",
    "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"
}
        
Elapsed time: 0.23264s