imaNNeo / imaNNeo/fl_chart

VerticalLine label text wording couldn't rotate

Open
#1,261 3 comments 1 reaction 0 assignees View on GitHub
enhancement Fundamental
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.
iShot_2023-02-10_14 42 14

I looked at the source of the plugin and found that the drawVerticalLines method can be modified as follows:
iShot_2023-02-10_14 44 58

Then we can get the following effect:
iShot_2023-02-10_14 33 37

Could you please add a field to set the rotation Angle of the text? Thanks very much.

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.