SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
I have a C# program that produces a custom data series in the form List, where the Dataline members are Date, Open, High, Low, Close, Volume. Is there some way I can plot my data series in SciChart, without converting it element-by-element into OhlcDataSeries?
Hi Steven,
Thanks for your question.
Unfortunately, it is not possible. You should append the data from your List to the new series of the type OhlcDataSeries<DateTime, double>() first.
There is an Append() method override which takes 4 collections, to make it more convenient:
https://www.scichart.com/documentation/v5.x/SciChart.Charting~SciChart.Charting.Model.DataSeries.OhlcDataSeries%602~Append(IEnumerable%7B%600%7D,IEnumerable%7B%601%7D,IEnumerable%7B%601%7D,IEnumerable%7B%601%7D,IEnumerable%7B%601%7D).html
Please see the documentation regarding the OHLC charts Type:
https://www.scichart.com/documentation/v5.x/webframe.html#The%20OHLC%20charts%20Type.html
And our Stock Chart examples:
https://www.scichart.com/example/wpf-chart-example-using-scistockchart/
Thank you for your response.
Regards,
Steven
Please login first to submit.