imaNNeo / imaNNeo/fl_chart

Whenever any clip side is true, all sides are clipped

Closed
#1,262 5 comments 7 reactions 0 assignees View on GitHub
bug Line Chart
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

Hi! First of all, thanks for this great library. The amount of options to customize are incredible.

**Describe the bug**
It looks like clipping is applied to all sides of a line graph even when it is enabled on just one side.

**To Reproduce**
- Open the example app (Line Chart Sample 10)
- Set all parameters of `FlClipData` to `false`
- Note that there is *no* clipping on the right side of the graph
- Set any parameter (except `right`) of `FlClipData` to `true`
- Note that there *is* clipping on the right side of the graph

**Screenshots**
![image](https://user-images.githubusercontent.com/2611894/218513503-b3495568-eda3-4d96-81ff-06d3d636763f.png)

![image](https://user-images.githubusercontent.com/2611894/218512694-870f4a63-c052-4d20-a602-16fa853e1dd1.png)

**Versions**
- Flutter 3.7.3
- FlChart 0.60.0

Contributor guide

Open the contributing guide

Research direction

Start with the Line Chart Sample 10 example and trace how FlClipData is applied to the chart. Reproduce the behavior with only one non-right parameter enabled, then verify that clipping occurs only on the selected sides while the right side remains unclipped.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
frontend, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.