google / charts

https://pub.dev/packages/charts_flutter
Apache License 2.0
2.81k stars 1.23k forks source link

Slider Interactions too stuck. #183

Open wangyeming opened 5 years ago

wangyeming commented 5 years ago

When I build LineChart with Slider, It's too stuck when I try to move the slider.

It's also exist in Slider Interactions Example

It's always stuck at the beginning and after a while,it's move smoothly.

2018-12-14 9 04 28

diablodale commented 5 years ago

I can reproduce similar poor slider behavior using the gallery example included with the core code.

  1. flutter v1.0.0 stable channel
  2. build the gallery example included with this chart package code at https://github.com/google/charts/tree/master/charts_flutter/example
  3. Run the app on Acer Chromebook Tab 10, or the Android Emulator ChromeOS
  4. Choose "Line Chart with Slider"
  5. Touch and hold the slider then drag left and right

Result Unusable sliding. Updates every 1-2 seconds.

Expected Smooth 60fps dragging slider

Here is screenshot with the performance overlay. That completely filled block on the lower right is when dragging. screenshot 2018-12-17 at 16 55 13

northelks commented 5 years ago

Hi @wangyeming @diablodale, I have the fix of the performance issue for ScatterPlotChart. Maybe this PR will help: https://github.com/google/charts/pull/246

thedejifab commented 5 years ago

@kroppli, any fix for same stuck conditions on TimeSeriesChart?