fl_chart icon indicating copy to clipboard operation
fl_chart copied to clipboard

Feature - Horizontal scroll implementation line chart example

Open martinkong0806 opened this issue 2 years ago • 2 comments

Hello @imaNNeoFighT

I had made an example to allow users to scroll the graph content, and I think it might be useful to some people, I am not sure if this feature is need to implemented inside the lib, but at least this is how I would be doing it.

Thanks

martinkong0806 avatar Jun 20 '22 14:06 martinkong0806

Codecov Report

Merging #1068 (10bf690) into master (0212c73) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1068   +/-   ##
=======================================
  Coverage   86.32%   86.32%           
=======================================
  Files          45       45           
  Lines        2808     2808           
=======================================
  Hits         2424     2424           
  Misses        384      384           

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

codecov[bot] avatar Jun 29 '22 15:06 codecov[bot]

Wow! That's amazing. I like your approach to handling this issue. As you might know, we have an ancient issue #71 from two years ago to handle the horizontal scroll.

I think it's better to handle it internally. You can find the AxisChartScaffoldWidget to get started. Now I checked the Flutter source code. I think we can use the Scrollable widget (parent of ListView, GridView, SingleChildScrollView, ....). In this way, we can use the flutter's approach to handle the scroll (interactions, physics, etc).

Let me know what do you think?

imaNNeo avatar Jul 01 '22 20:07 imaNNeo

I got what it take but I’m still confusing on how to begin Sony wanna make a mistake

Milllli avatar Jan 26 '23 15:01 Milllli