Skip to content
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

Seek help with CandleStickChartView #1297

Closed
MaDaLing opened this issue Aug 7, 2016 · 3 comments
Closed

Seek help with CandleStickChartView #1297

MaDaLing opened this issue Aug 7, 2016 · 3 comments

Comments

@MaDaLing
Copy link

MaDaLing commented Aug 7, 2016

Thanks for providing a powerful charts library, in the process of using CandleStickChartView met a question want to seek help:
I want to a screen display sixty data, but the data may be less than 60, but still want to display sixty data same size. For example, there are now two data, I want results as shown below,
2016-08-07 11 05 47
we do not want as shown below,
2016-08-07 10 46 04
is there any idea to do it?

@liuxuan30
Copy link
Member

liuxuan30 commented Aug 8, 2016

well.. the chart has logic to stretch or squeeze the size depending on the data volume and render area.. so when you have small data but large space, it shows you the second one. One quick workaround is generate 60 x values but not insert entry for the last 58 x values.

@danielgindi I guess it's kind of enhancements for candle stick chart? Like fixed width

@MaDaLing
Copy link
Author

MaDaLing commented Aug 8, 2016

I tried using zoomout (), but it looks like does not work

@MaDaLing
Copy link
Author

MaDaLing commented Aug 8, 2016

My problem is solved,
set _minScaleX default value 0 &
using zoom(scaleX: CGFloat, scaleY: CGFloat, x: CGFloat, y: CGFloat) will meet need

@MaDaLing MaDaLing closed this as completed Aug 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants