imaNNeo / imaNNeo/fl_chart

How can I make LineChart show the rightmost side of the x-axis at the beginning?

Open
#1,934 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

![Image](https://github.com/user-attachments/assets/cd8a7383-17b4-41d4-9c2a-69c4dc3a1a06)
i want to show rightmost side of the x-axis at the beginning
because the date is newest
`lotTransformationController = TransformationController();
amtTransformationController = TransformationController();

lotTransformationController.value *= Matrix4.diagonal3Values(
3.0,
1,
1,
);

amtTransformationController.value *= Matrix4.diagonal3Values(
3.0,
1,
1,
);

);`

and i scale 3.0 when i init
Because this will make the x-axis less compact

Contributor guide

Open the contributing guide

Research direction

Start with the LineChart API and the TransformationController initialization shown in the issue, then check how x-axis ordering and initial horizontal positioning are configured. Determine whether the newest date can appear at the left while preserving the requested scale; done means the chart opens on the rightmost data and remains readable.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.