You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered: