fl_chart
fl_chart copied to clipboard
Clip data removes border
fl_chart: ^0.50.1
FlClipData.none()
FlClipData.all() Removes Border around graph and also clip the max data

Facing this same issue at the moment.
With clipData: FlClipData.all(),
With clipData: FlClipData.none(),
Has anyone found any workaround for this?
i had the same problem. fl_chart: 0.46.0
After changing the code as below, the border is now displayed
src/chart/line_chart/line_chart/line_chart_painter.dart void clipToBorder() left = getLeftOffsetDrawSize(holder) + (borderWidth / 2); //original left = getLeftOffsetDrawSize(holder) - (borderWidth / 2); //After change top = getTopOffsetDrawSize(holder) + (borderWidth / 2); //original top = getTopOffsetDrawSize(holder) - (borderWidth / 2); //After change right = getLeftOffsetDrawSize(holder) + usableSize.width - (borderWidth / 2); //original right = getLeftOffsetDrawSize(holder) + usableSize.width + (borderWidth / 2); //After change bottom = getTopOffsetDrawSize(holder) + usableSize.height - (borderWidth / 2); //original bottom = getTopOffsetDrawSize(holder) + usableSize.height + (borderWidth / 2); //After change