Package: tkchart
tkcharttkchart Library is a Python library that simplifies the process of creating line charts in tkinter and customtkinter GUI applications.Examplestkchart - 1.3.3You need to install & import package firstinstallationpip install tkchartimportingimport tkchartobjectsLineChartLineTo display data using LineChart you need to do 3 main tasksCreating a LineChartCreating a LineDisplay of dataAttributes1 . Creating a LineChartlinechart = tkchart.LineChart()Attributes & Types & Valuesmaster :tkinter | customtkinter (Frame | Canvas | Tk)width :intheight :intaxis_size :inty_axis_section_count :intx_axis_section_count :inty_axis_label_count :intx_axis_label_count :intx_axis_display_values_indices :listy_axis_data :str | int | floatx_axis_data :str | int | floaty_axis_max_value :int | floatx_axis_values :List(str | float| int)["2020 Year", "2021 Year", "2022 Year", "2023 Year", "2024 Year"]y_axis_precision :intsection_color :str"#ffffff""white"y_axis_font_color :strx_axis_font_color :stry_axis_data_font_color :strx_axis_data_font_color :strbg_color :strfg_color :straxis_color :strdata_font_style :tuple("arial",10,"bold")("arial",20,"normal")axis_font_style :tupleline_width :int | stry_space :intx_space :intx_axis_data_position :str"top""side"y_axis_data_position :str"top""side"pointing_callback_function :functionfunction_name(*args)pointer_color :strpointing_values_precision :intMethodsconfigure :use to change LineChart attributesSupport parameterswidthheightaxis_sizey_axis_section_countx_axis_section_county_axis_label_countx_axis_label_countx_axis_display_values_indicesy_axis_datax_axis_datay_axis_max_valuex_axis_valuesy_axis_precisionsection_colory_axis_font_colorx_axis_font_colory_axis_data_font_colorx_axis_data_font_colorbg_colorfg_coloraxis_colordata_font_styleaxis_font_styleline_widthy_spacex_spacex_axis_data_positiony_axis_data_positionpointing_callback_functionpointer_colorpointing_values_precisionshow_data :use to display dataSupport parametersdata :intline :tkchart.Lineplace :use to place LineChartSupport parametersxyrelyrelxanchorpack :use to pack LineChartSupport parameterspadypadxbeforeaftersideanchorgrid :use to grid LineChartSupport parameterscolumncolumnspanpadxpadyrowrowspanstickyplace_forget :use to place forget the chartpack_forget :use to pack forget the chartgrid_forget :use to grid forget the chartplace_back :use to place chart in the old location after place forgetpack_back :use to pack chart in the old location after pack forgetgrid_back :use to grid chart in the old location after grid forgethide_all :use to hide all the linesSupport parametersstate :boolhide :use to hide a specific lineSupport parametersline :tkchart.Linestate :boolreset :use to reset chartlinechart = tkchart.LineChart(master=root,
                            width=800, 
                            height=400,
                            axis_size=5
                        )linechart = tkchart.LineChart(master=root,
                            width=800, 
                            height=400,
                            axis_size=5,
                            
                            y_axis_section_count=5,
                            x_axis_section_count=5,
                            y_axis_label_count=5,
                        )linechart = tkchart.LineChart(master=root,
                            width=800, 
                            height=400,
                            axis_size=5,
                            
                            y_axis_section_count=5,
                            x_axis_section_count=5,
                            y_axis_label_count=5,
                            x_axis_label_count=10,
                            
                            y_axis_data="GB",
                            x_axis_data="S",
                            x_axis_values=[1,2,3,4,5,6,7,8,9,10],
                            y_axis_max_value=1000,
                            y_axis_precision=5
                        )linechart = tkchart.LineChart(master=root,
                            width=800, 
                            height=400,
                            axis_size=5,
                            
                            y_axis_section_count=5,
                            x_axis_section_count=5,
                            y_axis_label_count=5,
                            x_axis_label_count=10,
                            
                            y_axis_data="GB",
                            x_axis_data="S",
                            x_axis_values=[1,2,3,4,5,6,7,8,9,10],
                            y_axis_max_value=1000,
                            y_axis_precision=5,
                            
                            section_color="#404040",
                            x_axis_font_color="#707070",
                            y_axis_font_color="#707070",
                            x_axis_data_font_color="lightblue",
                            y_axis_data_font_color="lightblue",
                            bg_color="#202020",
                            fg_color="#202020",
                            axis_color="#707070"
                        )linechart = tkchart.LineChart(master=root,
                            width=800, 
                            height=400,
                            axis_size=5,
                            
                            y_axis_section_count=5,
                            x_axis_section_count=5,
                            y_axis_label_count=5,
                            x_axis_label_count=10,
                            
                            y_axis_data="GB",
                            x_axis_data="S",
                            x_axis_values=[1,2,3,4,5,6,7,8,9,10],
                            y_axis_max_value=1000,
                            y_axis_precision=5,
                            
                            section_color="#404040",
                            x_axis_font_color="#707070",
                            y_axis_font_color="#707070",
                            x_axis_data_font_color="lightblue",
                            y_axis_data_font_color="lightblue",
                            bg_color="#202020",
                            fg_color="#202020",
                            axis_color="#707070",
                            
                            data_font_style=("Arial", 15,"bold"),
                            axis_font_style=("Arial", 10,"bold")
                        )linechart = tkchart.LineChart(master=root,
                            width=800, 
                            height=400,
                            axis_size=5,
                            
                            y_axis_section_count=5,
                            x_axis_section_count=5,
                            y_axis_label_count=5,
                            x_axis_label_count=10,
                            
                            y_axis_data="GB",
                            x_axis_data="S",
                            x_axis_values=[1,2,3,4,5,6,7,8,9,10],
                            y_axis_max_value=1000,
                            y_axis_precision=5,
                            
                            section_color="#404040",
                            x_axis_font_color="#707070",
                            y_axis_font_color="#707070",
                            x_axis_data_font_color="lightblue",
                            y_axis_data_font_color="lightblue",
                            bg_color="#202020",
                            fg_color="#202020",
                            axis_color="#707070",
                            
                            data_font_style=("Arial", 15,"bold"),
                            axis_font_style=("Arial", 10,"bold"),
                            
                            x_space=20,
                            y_space=20
                        )linechart = tkchart.LineChart(master=root,
                            width=800, 
                            height=400,
                            axis_size=5,
                            
                            y_axis_section_count=5,
                            x_axis_section_count=5,
                            y_axis_label_count=5,
                            x_axis_label_count=10,
                            
                            y_axis_data="GB",
                            x_axis_data="S",
                            x_axis_values=[1,2,3,4,5,6,7,8,9,10],
                            y_axis_max_value=1000,
                            y_axis_precision=5,
                            
                            section_color="#404040",
                            x_axis_font_color="#707070",
                            y_axis_font_color="#707070",
                            x_axis_data_font_color="lightblue",
                            y_axis_data_font_color="lightblue",
                            bg_color="#202020",
                            fg_color="#202020",
                            axis_color="#707070",
                            
                            data_font_style=("Arial", 15,"bold"),
                            axis_font_style=("Arial", 10,"bold"),
                            
                            x_space=20,
                            y_space=20,
                            
                            x_axis_data_position="side",
                            y_axis_data_position="size"
                        )

linechart.pack()2 . Creating a Lineline = tkchart.Line()Attributes & Types & Valuesmaster :tkchart.LineChartcolor :str"white""#10f0f0"size :intstyle :str"line""dashed""dotted"style_type :tuple(int, int)(5,10)(10,5)Methodsconfigure :use to change Line attributesSupport parameterssizecolorstylestyle_typeline = tkchart.Line(master=linechart,
                color="lightblue",
                size=2,
                style="dashed",
                style_type=(4,10))3 . Display of Dataimport customtkinter 
import tkchart
import random

root = customtkinter.CTk()

linechart = tkchart.LineChart(master=root,
                            width=800, 
                            height=400,
                            axis_size=5,
                            
                            y_axis_section_count=5,
                            x_axis_section_count=5,
                            y_axis_label_count=5,
                            x_axis_label_count=10,
                            
                            y_axis_data="GB",
                            x_axis_data="S",
                            x_axis_values=[1,2,3,4,5,6,7,8,9,10],
                            y_axis_max_value=1000,
                            y_axis_precision=5,
                            
                            section_color="#404040",
                            x_axis_font_color="#707070",
                            y_axis_font_color="#707070",
                            x_axis_data_font_color="lightblue",
                            y_axis_data_font_color="lightblue",
                            bg_color="#202020",
                            fg_color="#202020",
                            axis_color="#707070",
                            
                            data_font_style=("Arial", 15,"bold"),
                            axis_font_style=("Arial", 10,"bold"),
                            
                            x_space=20,
                            y_space=20,
                            
                            x_axis_data_position="side",
                            y_axis_data_position="size"
                        )
linechart.pack()


line = tkchart.Line(master=linechart,
                color="lightblue",
                size=2,
                style="dashed",
                style_type=(4,10))

data = [0,100,200,300,400,500,600,700,800,900,1000]
def loop():
    linechart.show_data(data=[random.choice(data)], line=line)
    root.after(250,loop)
loop()

root.mainloop()https://github.com/Thisal-D/tkchart/assets/93121062/ec29a3f4-7eba-40c5-9f5c-cc7071ff40ffExamplesgo to PyPiPyPi.org   :tkchartgo to GitHubGitHub.com   :tkchart