KLineChart icon indicating copy to clipboard operation
KLineChart copied to clipboard

Vertical zoom, Horizontal zoom

Open olablt opened this issue 2 years ago • 2 comments

Hello,

only Horizontal Zoom is working for me. Vertical is automatically adjusted. How to Scroll / Zoom vertically? For example to see the nearest key support/ resistance lines?

image

image

olablt avatar Jun 02 '22 15:06 olablt

I am also looking for

  1. how to disable the vertical(price) auto scaling (p.s. setZoomEnabled(false) will disable the X scaling only)
  2. how to drag the plot(k-lines) in any direction
  3. how to drag on Y(price) axis to scale the Y-value(price) range only
  4. how to drag on time axis to scale the time range only :)

obxyann avatar Jun 13 '22 08:06 obxyann

Y-axis scaling will be added in a later version.

liihuu avatar Jun 21 '22 16:06 liihuu

hey, @liihuu , how are you? hope everything is good :) !

just wanted to let you know that this library is best of the best ;) !

maybe you have a debug version of manual Y-axis scaling? or maybe it could be possible to set the scaling in the code and move on the chart in any direction without auto scaling?

olablt avatar Sep 30 '22 08:09 olablt

I'm trying to build the next version, of course this feature will be in the next version.

liihuu avatar Sep 30 '22 15:09 liihuu

Was Y-axis scaling/scrolling already implemented? If not, any ideas when this would be available?

guelweles avatar Nov 17 '22 15:11 guelweles

It has come. The refactoring is almost complete. This feature has been added and will be released soon.

liihuu avatar Nov 17 '22 18:11 liihuu

V9 alpha has been released and supports this feature. You can try it.

liihuu avatar Jan 09 '23 18:01 liihuu

does it mean that we can manually scroll the Y axis? I did upgrade to v9 but I'm getting a lot of errors, I was able to sort some of them and finally could load the chat, however I saw the Y axis keeps being adjusted automatically as v8, not sure if I got it correctly, for example, in tradingview, one can hover the mouse on the Y axis and scroll it up and down.

For now I'll keep using v8 as my code broke in many parts, I'll get some time to carefully read the v9 documentation and try to upgrade it again, anyway I appreciate your amazing lib as always, keep it up.

guelweles avatar Jan 25 '23 01:01 guelweles

Drag on y-axis.

liihuu avatar Jan 29 '23 04:01 liihuu