Comments (53)
My main requirement is to set a specified number of points for the x-axis and set (5-10) x-coordinate values as needed, but I can't find where to set the coordinate values at the moment, and based on the docs I've come to the conclusion that the number of x's needs to rely on the realization of the chart_line_len=width/n, and I'm not able to find any way related to obtaining the width (the width changes, and you can't use the initial value)
我的主要需求是,为X轴设置指定数量的点,并根据需要设置(5-10)个x坐标值,但目前没找到设置坐标值的位置,根据文档得出的结论是x的数量需要依靠chart_line_len=width/n实现,我又没能找到与获取width相关的方法(width变化,不能使用初始值)
from tkchart.
My main requirement is to set a specified number of points for the x-axis and set (5-10) x-coordinate values as needed, but I can't find where to set the coordinate values at the moment, and based on the docs I've come to the conclusion that the number of x's needs to rely on the realization of the chart_line_len=width/n, and I'm not able to find any way related to obtaining the width (the width changes, and you can't use the initial value)我的主要要求是为 x 轴设置指定数量的点并根据需要设置 (5-10) x 坐标值,但我目前找不到在哪里设置坐标值,根据文档我得出的结论是 x 的数量需要依赖于 chart_line_len=width/n 的实现, 并且我找不到任何与获取宽度相关的方法(宽度发生变化,您不能使用初始值)
我的主要需求是,为X轴设置指定数量的点,并根据需要设置(5-10)个x坐标值,但目前没找到设置坐标值的位置,根据文档得出的结论是x的数量需要依靠chart_line_len=width/n实现,我又没能找到与获取width相关的方法(width变化,不能使用初始值)
i'm working on it :D
cool!
from tkchart.
The other problem is that if I enter x_data_max=60, maybe I want to display up to 60 points on the screen instead of having to adjust it again via line_width.
A better logic I can think of is to design a list for the x-axis, and determine the scale of the x-axis by the length of the list (the list can be int, str), in this case, by the value of the list (x_min, x_max).
from tkchart.
@Thisal-D
Yes, it seems to me that the number of points shown is determined by [1,2,3,4]. A step further would be to allow x to change over time like y. For example, if I set x: [4,5,6,7], then I could update x from 4-7 instead of 1-7.
By the way, if I want to freely make changes to the display state of the curve, how do I do that? For example hiding and redisplaying the curve.
It's the ones who do open source that are great, I'm just offering some of my own insights and needs haha。
Looking forward to your next update!
from tkchart.
Give it a try, I'm now refreshing the entire form with every update.
from tkchart.
So far, everything is OK.
from tkchart.
Okay, I'm going to use it.
from tkchart.
Uh , the hide function needs some modification to add a line parameter that lets me go ahead and choose to hide a particular line instead of always hiding all of them?
from tkchart.
Besides, test5 is not uploaded
from tkchart.
Exactly so from the video, that's what I'm hoping for, I'll integrate them into my program tomorrow, thank you so much for your support!
from tkchart.
Finished my job as my expected.
Thanke for your help, now I will to adjust some color for more beautiful.
from tkchart.
Spring break is here and I'm on the train home.
It's not expected to get home until noon tomorrow.
The last bug I encountered yesterday was that in the configure method, the ability to configure y_axis_max_value (I think that's it, anyway it's the parameter that controls the maximum value of the Y-axis) doesn't take effect, i.e., after initializing it, it doesn't respond to me modifying it with configure again.
Also, I didn't find anything about the parameter that controls the number of points displayed on the graph, so maybe I missed it.
I found some bug in v1.2.0
What's Wrong, I want to fix it :/ Let me know as soon as possible
from tkchart.
Perhaps there are some issues with my program code, but when I go back, I will try to reproduce it and see where the problem lies
The last bug I encountered yesterday was that in the configure method, the ability to configure y_axis_max_value (I think that's it, anyway it's the parameter that controls the maximum value of the Y-axis) doesn't take effect, i.e., after initializing it, it doesn't respond to me modifying it with configure again.
2024-02-04.07-00-57.mp4
its working , i dont see any problems
from tkchart.
this is a simple project, right now there is no way to set values to x axis..! but i'm working on updating this package totally..i'll update this package soon..
from tkchart.
My main requirement is to set a specified number of points for the x-axis and set (5-10) x-coordinate values as needed, but I can't find where to set the coordinate values at the moment, and based on the docs I've come to the conclusion that the number of x's needs to rely on the realization of the chart_line_len=width/n, and I'm not able to find any way related to obtaining the width (the width changes, and you can't use the initial value)
我的主要需求是,为X轴设置指定数量的点,并根据需要设置(5-10)个x坐标值,但目前没找到设置坐标值的位置,根据文档得出的结论是x的数量需要依靠chart_line_len=width/n实现,我又没能找到与获取width相关的方法(width变化,不能使用初始值)
i'm working on it :D
from tkchart.
i updated the package . please check README.md before use this.
from tkchart.
i updated the package . please check README.md before use this.我更新了软件包。请在使用前检查 README.md。
I will try after go home.
from tkchart.
i updated the package . please check README.md before use this.我更新了软件包。请在使用前检查 README.md。
I will try after go home.
💯
from tkchart.
The other problem is that if I enter x_data_max=60, maybe I want to display up to 60 points on the screen instead of having to adjust it again via line_width.
A better logic I can think of is to design a list for the x-axis, and determine the scale of the x-axis by the length of the list (the list can be int, str), in this case, by the value of the list (x_min, x_max).
You mean when you set x_data as [1,2,3,4,5,6,7,8,9,10] you wanna set these values to x-axis and set line_width automatically by depend on len of this list?By the way i really appreciate you dude for your support.
from tkchart.
The other problem is that if I enter x_data_max=60, maybe I want to display up to 60 points on the screen instead of having to adjust it again via line_width.
A better logic I can think of is to design a list for the x-axis, and determine the scale of the x-axis by the length of the list (the list can be int, str), in this case, by the value of the list (x_min, x_max).
I will fix this error just don't configure line_width. just pass it when creating the LineChart.
from tkchart.
i fixed
a problem:
The other problem is that if I enter x_data_max=60, maybe I want to display up to 60 points on the screen instead of having to adjust it again via line_width.
A better logic I can think of is to design a list for the x-axis, and determine the scale of the x-axis by the length of the list (the list can be int, str), in this case, by the value of the list (x_min, x_max).I will fix this error just don't configure line_width. just pass it when creating the LineChart.
The other problem is that if I enter x_data_max=60, maybe I want to display up to 60 points on the screen instead of having to adjust it again via line_width. A better logic I can think of is to design a list for the x-axis, and determine the scale of the x-axis by the length of the list (the list can be int, str), in this case, by the value of the list (x_min, x_max).
I fixed this bug and updated for your requirement..
from tkchart.
i fixed
a problem:
The other problem is that if I enter x_data_max=60, maybe I want to display up to 60 points on the screen instead of having to adjust it again via line_width.
A better logic I can think of is to design a list for the x-axis, and determine the scale of the x-axis by the length of the list (the list can be int, str), in this case, by the value of the list (x_min, x_max).I will fix this error just don't configure line_width. just pass it when creating the LineChart.
a problem:
The other problem is that if I enter x_data_max=60, maybe I want to display up to 60 points on the screen instead of having to adjust it again via line_width. A better logic I can think of is to design a list for the x-axis, and determine the scale of the x-axis by the length of the list (the list can be int, str), in this case, by the value of the list (x_min, x_max).I fixed this bug and updated for your requirement..
Check readme before use, little changes :D
check test/tests4.py example
from tkchart.
By the way, if I want to freely make changes to the display state of the curve, how do I do that? For example hiding and redisplaying the curve.
i didnt undestand ? can u explain this more ?
from tkchart.
By the way, if I want to freely make changes to the display state of the curve, how do I do that? For example hiding and redisplaying the curve.
顺便说一下,如果我想自由地更改曲线的显示状态,我该怎么做?例如,隐藏和重新显示曲线。
i didnt undestand ? can u explain this more ?我没有 undestand ?你能解释一下吗?
It's when I add a curve to a graph, but instead of displaying it, I control him with a parameter.
When the curve state is on, the curve appears on the graph, otherwise the curve is just generated but not displayed. When doing data presentation, it is often the case that you need to show different images, or even hide them and then show them again.
from tkchart.
its possible...!
i'll make method for that :D
from tkchart.
ifu wanna hide whole chart , u can use place_forget ... if not the whole chart i'll create method for that
from tkchart.
2024-01-16.09-15-07.X264123.mov
is this what u need ?
Give it a try, I'm now refreshing the entire form with every update.
from tkchart.
2024-01-16.09-15-07.X264123.mov
is this what u need ?Give it a try, I'm now refreshing the entire form with every update.试一试,我现在每次更新都会刷新整个表单。
Yes,it`s perfect!
from tkchart.
2024-01-16.09-15-07.X264123.mov
is this what u need ?Give it a try, I'm now refreshing the entire form with every update.试一试,我现在每次更新都会刷新整个表单。
Yes,it`s perfect!
Ok.give me 10mins i'll update 🙂
from tkchart.
2024-01-16.09-15-07.X264123.mov
is this what u need ?Give it a try, I'm now refreshing the entire form with every update.试一试,我现在每次更新都会刷新整个表单。
Yes,it`s perfect!
Do you have any other requirements ?
from tkchart.
i updated package in pypi and github... nothing changed this time. but added new methods .
check "test/test5.py" to hide and place_forget methods...
from tkchart.
Let me know if there is any bug or something I aint 100% sure about.
from tkchart.
Besides, test5 is not uploaded
🫤
from tkchart.
updated the package ...!
added 2 new methods
- hide - hide a specific line | 2 **kwargs
- hide_all - hide all lines | 1**kwarg
hide
think you have line named line1 & you wanna hide it.!
chart.hide(line=line1 ,state=True)
you wanna show back line that hidden
chart.hide(line=line1 ,state=False)
or
chart.hide_all(False)
, but This will back all hidden lines
check out
test/test5.py & test/test6.py
from tkchart.
Uh , the hide function needs some modification to add a line parameter that lets me go ahead and choose to hide a particular line instead of always hiding all of them?
.........
from tkchart.
Uh , the hide function needs some modification to add a line parameter that lets me go ahead and choose to hide a particular line instead of always hiding all of them?
.........
I went to do some other work today, didn't have time to look at the new code, and may be involved in testing later.
If there are currently five lines, can they be hidden with five buttons?
from tkchart.
yeah you can do it . there is no limits :D....
Uh , the hide function needs some modification to add a line parameter that lets me go ahead and choose to hide a particular line instead of always hiding all of them?
.........
I went to do some other work today, didn't have time to look at the new code, and may be involved in testing later. If there are currently five lines, can they be hidden with five buttons?
from tkchart.
2024-01-17.14-50-23.webm
i think this is what you ask for
check : test/test7.py
Uh , the hide function needs some modification to add a line parameter that lets me go ahead and choose to hide a particular line instead of always hiding all of them?
.........
I went to do some other work today, didn't have time to look at the new code, and may be involved in testing later. If there are currently five lines, can they be hidden with five buttons?
Uh , the hide function needs some modification to add a line parameter that lets me go ahead and choose to hide a particular line instead of always hiding all of them?
.........
I went to do some other work today, didn't have time to look at the new code, and may be involved in testing later. If there are currently five lines, can they be hidden with five buttons?
from tkchart.
Exactly so from the video, that's what I'm hoping for, I'll integrate them into my program tomorrow, thank you so much for your support!
Glad to know . Thanks for your ideas💯.
from tkchart.
Finished my job as my expected.
Thanke for your help, now I will to adjust some color for more beautiful.
Great job.💯🙂 Thanks for your ideas for tkchart pacakge.
By the way, Are you going to upload the project to github after you complete it? I really want to see your project🙂.
from tkchart.
Maybe, but it is made for a specially devices, other people hard to use it whitout the device.
Anyhow, I will show the completed for you.
Besides,I will do a new code for myself after a while, I will use tkchart again and it will be upload.
from tkchart.
Maybe, but it is made for a specially devices, other people hard to use it whitout the device.
Anyhow, I will show the completed for you.Besides,I will do a new code for myself after a while, I will use tkchart again and it will be upload.
Ohh for special devices ,great work. I never thought my package would be used for such a thing, this is a simple package..
I wish your project will be successful.💯
from tkchart.
Wow, so big changed!
The readme documentation is much prettier than before.
A lot of the parameters have changed, can you show a diagram of the previous one, identifying in each position what the corresponding parameter is?
The readme is missing an r in the anchor below the pack parameter.
from tkchart.
Can I contact you via social media? Too slow in github.
I found some bug in v1.2.0
from tkchart.
Can I contact you via social media? Too slow in github.
I found some bug in v1.2.0
Sure check ur mail I send my FB ,
I fixed the missing 'r'.
from tkchart.
Wow, so big changed! The readme documentation is much prettier than before. A lot of the parameters have changed, can you show a diagram of the previous one, identifying in each position what the corresponding parameter is? The readme is missing an r in the anchor below the pack parameter.
i think this will help, I ain't sure what u asking for
Linechart
-
Changed
- bar_size -> axis_size
- bar_color -> axis_color
- chart_color -> fg_color
- sections_color -> section_color
- y_values_decimals -> y_axis_precision
- y_labels_count -> y_axis_label_count
- y_data -> y_axis_data
- y_data_max -> y_axis_max_value
- y_sections_count -> y_axis_section_count
- y_values_color -> y_axis_font_color
- y_data_color -> y_axis_data_font_color
- x_data -> x_axis_data
- x_sections_count -> x_axis_section_count
- x_values_color -> x_axis_font_color
- x_data_color -> x_axis_data_font_color
- x_y_data_font -> data_font_style
- x_y_values_font -> axis_font_style
-
Unchanged
- master
- width
- height
- bg_color
- line_width
-
Removed
- x_data_min_max
- x_labels_count
- x_values_decimals
- line_width_auto
-
Newly added
- x_axis_values
- x_axis_data_position
- y_axis_data_position
- y_space
- x_space
Line
-
Newly added
- style
- style_type
from tkchart.
I found some bug in v1.2.0
What's Wrong, I want to fix it :/ Let me know as soon as possible
from tkchart.
It's not expected to get home until noon tomorrow.
Thanks for bug report i'll fix it
from tkchart.
Now you can use the x_axis_values parameter to set the X axis values. You can pass it as List or Tuple,
["a" ,"b","c" ,"d","e"]
[1, 2, 3, 4, 5, 6,7,8,9,10]
[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]
The number of points displayed depends on the length of the list:
Also, I didn't find anything about the parameter that controls the number of points displayed on the graph, so maybe I missed it.
from tkchart.
The last bug I encountered yesterday was that in the configure method, the ability to configure y_axis_max_value (I think that's it, anyway it's the parameter that controls the maximum value of the Y-axis) doesn't take effect, i.e., after initializing it, it doesn't respond to me modifying it with configure again.
2024-02-04.07-00-57.mp4
its working , i dont see any problems
from tkchart.
The number of points displayed depends on the length of the list.
This is an interesting way to give me some ideas, and I will make an attempt to set up a long list (maybe 1000 rows), most of which are [None], and place some value at the position of the quintile, either the time or the serial number (because displaying the x-coordinates of all the points is neither aesthetically pleasing nor necessary)
from tkchart.
sure i'll add some way to control x axis label count. then u can use long list . nice idea its really worth doing,
The number of points displayed depends on the length of the list.
This is an interesting way to give me some ideas, and I will make an attempt to set up a long list (maybe 1000 rows), most of which are [None], and place some value at the position of the quintile, either the time or the serial number (because displaying the x-coordinates of all the points is neither aesthetically pleasing nor necessary)
from tkchart.
Perhaps there are some issues with my program code, but when I go back, I will try to reproduce it and see where the problem lies
The last bug I encountered yesterday was that in the configure method, the ability to configure y_axis_max_value (I think that's it, anyway it's the parameter that controls the maximum value of the Y-axis) doesn't take effect, i.e., after initializing it, it doesn't respond to me modifying it with configure again.
2024-02-04.07-00-57.mp4
its working , i dont see any problems
Ok.
from tkchart.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tkchart.