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.87k stars 1.78k forks source link

LineChart visual error #1681

Open dodocube opened 5 months ago

dodocube commented 5 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 5 months ago

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