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

CandleStickChart - last CandleStick cut in half #1668

Closed
PSTDev opened this issue Oct 17, 2016 · 1 comment
Closed

CandleStickChart - last CandleStick cut in half #1668

PSTDev opened this issue Oct 17, 2016 · 1 comment
Labels

Comments

@PSTDev
Copy link

PSTDev commented Oct 17, 2016

CandleStickChartView shows first and last (which one is especially important to see in financial charts) candles cut in half. I have this issue in CombinedChartView with CandleChartData, but as I can see in demo - plain Candle Stick Chart has the same issue. Chart is fully zoomed out. I know about fitBars property for BarChart, but it's not applicable for candle stick chart(

screen shot 2016-10-17 at 19 45 29

Calculating and setting xAxis.axisMaximum manually to be (candleWidth/2) larger than last candle's X-value would be the best decision? Is there any way to do it automatically like with fitBars for BarChart?

Charts v3/Xcode 8, latest master (as of 2016-10-17).

@PSTDev PSTDev changed the title CandleStickChart last candle cut in half CandleStickChart last candlestick cut in half Oct 17, 2016
@PSTDev PSTDev changed the title CandleStickChart last candlestick cut in half CandleStickChart - last CandleStick cut in half Oct 17, 2016
@liuxuan30 liuxuan30 added the bug label Oct 18, 2016
@PSTDev
Copy link
Author

PSTDev commented Oct 18, 2016

Thanks for fix! This solves problem in demo with plain CandleStickChartView, but not in CombinedChartView with CandleChartData - still shows only half of last candle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants