BEMSimpleLineGraph icon indicating copy to clipboard operation
BEMSimpleLineGraph copied to clipboard

Graph ScrollView

Open jasonmcdermott opened this issue 11 years ago • 4 comments

I'm using this lib to graph data in realtime, appending new data as it arrives (Right To Left).

After a while, all the data gets bunched up and hard to read. Currently I'm trimming the earlier data, so the graph only shows the last 30 seconds or so.

It'd be nice if the user could 'scroll' left-right to see their graph history.

jasonmcdermott avatar Jun 11 '14 03:06 jasonmcdermott

This is something I had in mind for a long time. I think that it would be a very neat addition to the library. It's a big feature though, I think that I will reserve it for the v4.0.

We could make the left-right scrolling work with two fingers, which would let us keep the touch reporting with one finger as well.

I would love to see it work, but I see a lot of issues that will be hard to overcome (performance will be one of them). But I think that it's definitely worth the trouble! Great Idea!

Boris-Em avatar Jun 11 '14 19:06 Boris-Em

Now I put BEMSimpleLineGraph on a scrollview, and it's work fine, just can not get the selected data. I think throw the click event method, user can draw selected themselves like https://github.com/zhuhuihuihui/EChart, click to BEMSimpleLineGraph, and drag to scrollview

nyssance avatar Nov 20 '14 05:11 nyssance

@nypisces great sample. https://github.com/zhuhuihuihui/EChart, using this sample is it possible to add x-axis Dates and y-axis Float values to add in a line chart. If it is possible please give me the sample or any solution.

Nandulucky avatar Sep 01 '15 11:09 Nandulucky

@nypisces hi, can you give an example project to illustrate BEMSimpleLineGraph used with UIScrollView?

inix avatar Oct 24 '16 02:10 inix