SingleValueData not supported any more in version 4.x.x?
Hello in my project i use SingleValueData in previous version all work correct, but currently it show me error
No exact matches in call to instance method 'setData'
let data = [
SingleValueData(time: .string("2019-05-28"), value: 46.01)
]
series.setData(data: data)
May you give a hint at what of type i may replace SingleValueData?
PS
I make some research, and it's probably because you change here Sources/LightweightCharts/Implementations/API/Series/AreaSeries.swift in 4.0.0 version
From this code
public class AreaSeries: SeriesObject, SeriesApi {
public typealias Options = AreaSeriesOptions
public typealias TickValue = SingleValueData // <----- Here
}
to this
public class AreaSeries: SeriesObject, SeriesApi {
public typealias Options = AreaSeriesOptions
public typealias TickValue = AreaData // <----- Here
}
I create new SingleValueAreaSeries and other data structure for back compatibility, maybe it be useful
https://github.com/tradingview/LightweightChartsIOS/pull/68
As i understood, SingleValueData is not public data structure any more, but maybe we need delete them, or make it visibility as internal? As i see, now SingleValueData is useless