How can i align to center the linechart if data length = 1?
Open
Nobody has claimed this yet.
enhancement
Fundamental
- Dominant language
- Dart
- Stars
- 7.6k
- Forks
- 2k
- Avg merge
- 9d 1h
- Merged PRs (30d)
- 2
Description
My problem is that if chart has only 1 data, it has left alignment. How can i change it?

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported alignment with a line chart containing a single data point, using the screenshot and issue description as the expected case. Inspect the line-chart layout and alignment behavior; done means the single-point chart is centered rather than left-aligned.
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
- Needs clarification
- Newbie friendliness
- 25/100