fl_chart icon indicating copy to clipboard operation
fl_chart copied to clipboard

belowBarData not working in ios

Open movilixaTecnologia opened this issue 1 year ago • 7 comments

Describe the bug belowBarData in BarAreaData is not working for ios in flutter 13.3

To Reproduce void main() { runApp(const MainApp()); }

class MainApp extends StatelessWidget { const MainApp({super.key});

@override Widget build(BuildContext context) { List<FlSpot> spots = [ const FlSpot(0, 1), const FlSpot(1, 2), const FlSpot(2, 3), const FlSpot(3, 4), const FlSpot(4, 5), const FlSpot(5, 6), const FlSpot(6, 3), const FlSpot(7, 8), const FlSpot(8, 9), const FlSpot(9, 10), ]; return MaterialApp( home: Scaffold( body: Center( child: SizedBox( width: double.infinity, height: 190, child: LineChart( LineChartData( lineBarsData: [ LineChartBarData( spots: spots, isCurved: false, color: Colors.black, barWidth: 1, isStrokeCapRound: true, belowBarData: BarAreaData( show: true, color: Colors.green.withOpacity(0.3), cutOffY: 5, applyCutOffY: true, ), aboveBarData: BarAreaData( show: true, color: Colors.red.withOpacity(0.6), cutOffY: 5, applyCutOffY: true, ), ), ], ), ), ), ), ), ); } }

Screenshots

Screenshot_1692996282

Simulator Screenshot - iPhone 14 Pro - 2023-08-25 at 15 44 45

Versions

  • Flutter 3.13.3
  • fl_chart 0.63.0

movilixaTecnologia avatar Aug 25 '23 20:08 movilixaTecnologia

Same for me Flutter: 3.13.6 fl_chart: 0.63.0

beerline avatar Oct 04 '23 12:10 beerline

It might be the impeller issue

imaNNeo avatar Nov 11 '23 16:11 imaNNeo

Do you know which impeller issue specifically? And if there is a workaround? I might try to tackle this, thanks!

veloce avatar Nov 21 '23 13:11 veloce

I'm not sure, can you please test it with and without the Impeller?

imaNNeo avatar Nov 24 '23 18:11 imaNNeo

I did and I confirm it does work without impeller.

veloce avatar Nov 25 '23 17:11 veloce

I did and I confirm it does work without impeller.

So the only workaround is to disable impeller for the whole app?

lauroboeni avatar Dec 22 '23 08:12 lauroboeni

I did and I confirm it does work without impeller.

So the only workaround is to disable impeller for the whole app?

Yes, I think. Or I would appreciate it if someone take a look to fix it.

imaNNeo avatar Dec 25 '23 11:12 imaNNeo