-
-
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
CombinedChartView with CandleData - first/last candlesticks are cut in half #1717
Comments
do you have code I can reproduce? I tried ChartDemo's combined chart, it has candle stick but it's fine. |
You can reproduce this issue if in ChartDemo's combined chart sample comment out other datasources and xAxis minimum/maximum modifications. Like this: CombinedChartViewController.m
|
Tried - only the first bar is cut in half combinedChartView.xAxis.spaceMin = 0.5
combinedChartView.xAxis.spaceMax = 0.5 for combined chart may have side effect since combined chart is putting different chart renderer together. I would be cautious for the moment. Not having time to look into this right now, but you are welcome to help on this. |
You should set |
Similar issue #1668 for CandleStickChartView was resolved recently, but same problem still exists for CombinedChartView with CandleData - first and last candlesticks are cut in half by default.
Same solution d276f55 works for CombinedChartView too:
combinedChartView.xAxis.spaceMin = 0.5
combinedChartView.xAxis.spaceMax = 0.5
I think it should be part of CombinedChartView initialzation as for CandleStickChartView. At least in previous version of Charts (v2.2.5) CombinedChartView with CandleData shows full first/last candlesticks by default.
The text was updated successfully, but these errors were encountered: