Skip to content

Commit 0711fb4

Browse files
committed
version 2.1.1
1 parent 0ca1713 commit 0711fb4

34 files changed

+2516
-1764
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

-31
This file was deleted.

.github/ISSUE_TEMPLATE/feature_request.md

-20
This file was deleted.

PULL_REQUEST_TEMPLATE.md

-9
This file was deleted.

README.md

+337-724
Large diffs are not rendered by default.

README_CN.md

-801
This file was deleted.

SECURITY.md

-1
This file was deleted.

Tests/Main - Test.py

+5-20
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,20 @@
88

99
data = ([x for x in range(0,1001)])
1010
x_axis_values = tuple([x for x in range(1,21)])
11-
line_chart = ctkchart.CTkLineChart(master=root, fg_color=("#FFFFFF","#101010"), bg_color=("#ffffff","#101010"),
12-
width=900, height=350,x_axis_section_color=("#aaaaaa","green"),y_axis_section_color=("#aaaaaa","green"),
13-
x_axis_data="", y_axis_data="",x_axis_data_position="side",
14-
axis_size=1, y_axis_precision=0,
15-
x_axis_values=x_axis_values, y_axis_values=(0, 1000),
16-
x_axis_label_count=20, y_axis_label_count=10,
17-
x_axis_section_count=10, y_axis_section_count=10,
18-
y_space=10, x_space=10)
11+
line_chart = ctkchart.CTkLineChart(master=root,
12+
x_axis_values=x_axis_values, y_axis_values=(0, 1000))
1913
line_chart.pack()
2014

21-
line_chart2 = ctkchart.CTkLineChart(master=root, fg_color=("#FFFFFF","#101010"), bg_color=("#ffffff","#101010"),
22-
width=900, height=350,x_axis_section_color=("#aaaaaa","green"),y_axis_section_color=("#aaaaaa","green"),
23-
x_axis_data="", y_axis_data="",x_axis_data_position="side",
24-
axis_size=1, y_axis_precision=0,
25-
x_axis_values=x_axis_values, y_axis_values=(0, 1000),
26-
x_axis_label_count=20, y_axis_label_count=10,
27-
x_axis_section_count=10, y_axis_section_count=10,
28-
y_space=10, x_space=10)
29-
line_chart.pack()
3015

31-
line = ctkchart.CTkLine(master=line_chart2, style="dashed", style_type=(10,5), size=1, color=("#404040", "lightblue"), fill="enabled",
16+
line = ctkchart.CTkLine(master=line_chart, style="dashed", style_type=(10,5), size=1, color=("#404040", "lightblue"), fill="enabled",
3217
point_highlight="enabled", point_highlight_size=5, point_highlight_color=("#404040", "lightblue"))
3318

3419
def loop():
3520
line_chart.show_data(line=line ,data=[random.choice(data)])
36-
root.after(400, loop)
21+
root.after(100, loop)
3722
loop()
3823

24+
3925
frame = ctk.CTkScrollableFrame(master=root, width=1000, height=900, fg_color=("#FFFFFF","#151515"))
4026
frame.pack(pady=100)
4127

@@ -45,7 +31,6 @@ def line_chart_configure(**kwrgs):
4531
def line_configure(**kwrgs):
4632
line.configure(**kwrgs)
4733

48-
4934
row = 1
5035
ctk.CTkLabel(text_color=("black", "white"), master=frame, text="Line Chart Attributes : ", font=("Arial",25,"bold")).grid(row=row, column=1)
5136
row += 1

0 commit comments

Comments
 (0)