-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About Auto-scaling on axis #259
Comments
for Q1, I am not sure what's your problem. the yaxis changes if needed.. I suppose for Q2, I guess you can't... once it reaches the min/max index on x axis, it will stop scrolling. But you could try insert many xIndex and don't insert dataEntry for these xIndex... But it's too hacky and I won't try it for performance issue :-) Also I don't think it makes sense to scroll infinitely Chart is to provide better readabilty about data, not a playground. |
Q1: e.g. y:{ 0,1,2,3,4,5,6,7} ,y is from 0 to 7, reset the scale to make point { 0,1,2,3} can be seen in the screen , now the yaxis disctance is from 0-3, but when move the line in xaxis , the yaxis disctance will jump to 0-7, this looks bad in visual . how to fix this , (notice: the y value is random, so maybe could not set custom x and y value) |
I remember when you zoomed in and scroll, the yaxis will calculate its range as needed, so if currently is {0,1,2,3} on screen, when you start to scroll to 4-6, it will calculate the new range, like [0,6]. I don't see it's bad in visual, because you have new points and larger values, if the yAxis keeps in [0,3], and there is a point y:6, if you draw this point on [0,3], it is wrong. |
Maybe you coulg have a try like {0,0,0,0,0,0,0,0,0,0,0,-90,120,-90,120,-90,120,-90,120,-90,......,,0,0,0,} when scroll between -90 and 120, the yaxis is calulate,and the the scale in y has chaged, in visual, the line is zooming in y direction or flicker so move in x direction lead to yaxis zoom |
I don't really understand your problem here. Could you maybe make a video of your issue in order to illustrate it better? Anyway, I just found a bug with the autoscaling myself. It occasionally happens, that the x axis is being moved when autoscaling is enabled, which shouldn't be the case. I have yet to find the origin of that issue, but this could be a tricky one... |
http://pan.baidu.com/s/1c0jm788 i‘m not sure if you can open the video successfuly |
Nope, doesn't load without some sort of login, I suppose. |
can not download? |
The chart can not move "infinitely in any direction", as it is not video game, its a view that is supposed to view a chart. So you can scale and drag to the edges of the chart. About "auto-scaling" feature: |
if disable the auto-scaling ,how to set the y min/max dynamicly , when add new point to the line and the new value maybe bigger than the point existed? |
I think you should just reset the scaleY of the viewportHandler to 1.0 |
setScaleMinima:0 scaleY:1.0 ?? or which method? when add a new point to line , i change the customMaxValue and minvalue ,but it does`t work |
Hi, kscorpio 你是否解决了关于自动调节高度, 出现突然跳动的问题 |
Please keep the conversation in English if possible. It is more accessible for most people. Thanks. |
1 about y
i use the newest release 2.1.2
i find
Auto-scaling y axis' min/max
but when set autoScaleMinMaxEnabled=YES, the y scaleling range is decided by the points which can be seen in the screen, not by the dataset y values,
so when i move a point out of the screen , the y axis will change suddenly;
2 about x
x cant move to the value which is out of the dataset.xvalue, the first and last point is limits
how can the chart move freely&infinitely in x y direction ??
The text was updated successfully, but these errors were encountered: