DataAdapter for randomly ordered time based data


#1

Hi All,

I have a lot of data to scroll through, so my data comes in in blocks. I’m using ShinobiCharts Android 1.5 and I have been trying to figure out how to make this work with a SimpleDataAdapter<Double, Date> but the chart lines are getting all jumbled up whenever my blocks come out of order.

I suspect I’m going to need to make my own DataAdapter for this, but it looks like the base DataAdapter is set up to use a List to store the values, and I want to use some other sorted data structure. Has anyone tried to do this? Any pitfalls?

Thanks in Advance.


#2

Hello thorinside,

Thanks for getting in touch.

You are correct in your assumption that the base DataAdapter uses a List for storage. The SimpleDataAdapter is intended for simple use cases and as such I believe you will need to create your own, custom DataAdapter to achieve sorting.

We hope you find this information helpful, please get back in touch if you need any further assistance.

Thanks,

Kai