VerticalLineLabel position has changed when migrating to new versions
- Dominant language
- Dart
- Stars
- 7.6k
- Forks
- 2k
- Avg merge
- 9d 1h
- Merged PRs (30d)
- 2
Description
I am currently in the process of migrating from version 0.46.0 to 0.68.0. My issue is that since migrating, the vertical line label used to sit below the x axis, now it sits above it.
My extralinesdata is unchanged using the following code:
` return ExtraLinesData(
verticalLines: [
VerticalLine(
x: 0,
dashArray: [4, 1],
strokeWidth: 1.5,
color: Colors.white,
label: VerticalLineLabel(
show: true,
style: TextStyle(color: Colors.white),
padding: const EdgeInsets.all(10),
alignment: Alignment.bottomCenter,
labelResolver: (_) => 'LABEL',
),
),
],
);`
Before is on the left, after on the right.
**Versions**
- which version of the Flutter are you using? 3.22.1
- which version of the FlChart are you using? 0.68.0
Contributor guide
Research direction
Start by reproducing the reported migration from fl_chart 0.46.0 to 0.68.0 with the supplied ExtraLinesData and VerticalLineLabel snippet. Compare the VerticalLineLabel alignment behavior between those versions; done means the label position matches the expected placement below the x axis or the changed behavior is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100