Posted 20 April 2022, 2:41 am EST
What is the fastest way to add and display an array of integer in the new flexchart?
Preferably in a backgroundworker thread.
Regards,
Chris
Forums Home / ComponentOne / WinForms Edition
Posted by: cnoelle on 20 April 2022, 2:41 am EST
Posted 20 April 2022, 2:41 am EST
What is the fastest way to add and display an array of integer in the new flexchart?
Preferably in a backgroundworker thread.
Regards,
Chris
Posted 21 April 2022, 6:40 am EST
Hello Chris,
Thanks for reaching out to us with your query.
A data bound control, such as FlexChart, Flexgrid, etc, would always prefer a collection of objects such as List, ObservableCollection, etc because of some advantages over an array. You can refer the following articles for the same:
https://stackoverflow.com/questions/434761/array-versus-listt-when-to-use-which
https://blogs.msdn.microsoft.com/ericlippert/2008/09/22/arrays-considered-somewhat-harmful/
We suggests you to use Collection like ObservableCollection or List instead Array.
Still for the user’s use case, FlexChart supports arrays for providing the data to plot.
You can refer the attached sample for the same: FlexChartArrayData.zip
Best Regards,
Nitin.