in my current project i have to visualize about 30.000 entries in a (telerik windows phone) chart control on mobile devices. Showing all of these entries slows down and blocks the UI for a few seconds.
My datasource is a list of "DataObject", where dateAndTime is the XAxis and the consumptionHT and consumptionNT are the YAxis.
(There are two different values, because for daytime consumptionHT is filled and consumptionNT is 0, for nighttime consumptionNT is filled and consumptionHT is 0. A solution for only one consumption value would be really helpful as well.)
public class DataOject
{
public DateTime dateAndTime { get; set; }
public float consumptionHT { get; set; }
public float consumptionNT { get; set; }
}
I read something about algorithms like Ramer–Douglas–Peucker algorithm, but i don´t know if there is a better/more performant solution to reduce the size of list without loosing too many information (like extreme values).
Does anyone have a suggestion how to handle this problem? I am currently working with C# for Windows Universal App.
Kind regards, Robert