VerticalLine label text wording couldn't rotate
- Dominant language
- Dart
- Stars
- 7.6k
- Forks
- 2k
- Avg merge
- 9d 1h
- Merged PRs (30d)
- 2
Description
Hello, I am using the fl_chart plugin. extraLineData is used when drawing line graphs. Found that text cannot be rotated according to the angle.

I looked at the source of the plugin and found that the drawVerticalLines method can be modified as follows:

Then we can get the following effect:

Could you please add a field to set the rotation Angle of the text? Thanks very much.
Contributor guide
Research direction
Start by locating the extraLineData implementation and its drawVerticalLines method in the fl_chart source. Trace how VerticalLine labels are painted, then add a configurable text rotation angle and verify that labels render at the requested angle, including the existing default behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100