imaNNeo / imaNNeo/fl_chart

How can i align to center the linechart if data length = 1?

Open
#755 2 comments 0 reactions 0 assignees View on GitHub

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?

![image](https://user-images.githubusercontent.com/58813868/130652316-5214ee9d-39d9-4440-be01-95c62e496037.png)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.