imaNNeo / fl_chart

FL Chart is a highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart.
https://flchart.dev
MIT License
6.8k stars 1.76k forks source link

LineChart visual error #1681

Open dodocube opened 4 months ago

dodocube commented 4 months ago

Describe the bug End of the line literally looks weird (not really being connected). Looks fine when [isCurved] is true, only happens when it's false.

To Reproduce `import 'package:fl_chart/fl_chart.dart'; import 'package:flutter/material.dart';

void main() async { return runApp( MaterialApp( home: Scaffold( body: Center( child: AspectRatio( aspectRatio: 2, child: LineChart( LineChartData( lineBarsData: [ LineChartBarData( spots: [ FlSpot(1, 1), FlSpot(2, 2), FlSpot(3, 1), FlSpot(4, 2), FlSpot(5, 1), ], isCurved: false, curveSmoothness: 0.15, preventCurveOverShooting: true, dotData: FlDotData( show: false, ), ), ], ), ), ), ), ), ), ); }`

Screenshots Simulator Screenshot - iPhone 15 Pro - 2024-06-13 at 14 02 51

Versions

Michal-MK commented 3 months ago

Duplicate of #1690, It is an Impeller issue, the other issue mentions a workaround.