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

Bug with 2 candlestick datasets on one chart. #1428

Closed
JokerMZD opened this issue Sep 12, 2016 · 0 comments
Closed

Bug with 2 candlestick datasets on one chart. #1428

JokerMZD opened this issue Sep 12, 2016 · 0 comments

Comments

@JokerMZD
Copy link

Hi,

I'm trying to display 2 candlestick datasets on 1 chart.
They have different starting points in time. To determine correct position I use set of dates from both datasets
var keys:Set = []
for i in 0..<historical.count {
keys.insert(String.init(historical[i].epochdate)) }
for i in 0..<forecasts.count {
keys.insert(String.init(forecasts[i].epochdate)) }
let labels = keys.sort()

To determine correct position during dataset population I use indexOf method of array.
labels.indexOf(String.init(historical[i].epochdate))!
labels.indexOf(String.init(forecasts[i].epochdate))!

And after initialization historical dataset appears partly and disappear when zooming or translating chart.

Here is the video - https://youtu.be/oRoRdRiUgGU.

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

No branches or pull requests

1 participant