imaNNeo / imaNNeo/fl_chart

Specify GraphArea height for barChart

Open
#1,611 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bar Chart question
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

There are times where I need my bottom titles to be tilted because they are too long. when I tilt them, they occupy a vertical space that otherwise would be used to draw the graph. This causes the vertical space of the drawn graph to differ when the bottomTitles are dynamic.

I want to be able to fix a vertical height for the drawn graph EXCLUDING space occupied by titles.
I am fine with the user having to scroll down if they need to read the titles. I just need the visual graph to be consistent.

example images
![image](https://github.com/imaNNeo/fl_chart/assets/125013689/58eba871-d3a7-4620-b52e-09ef39408151)
![image](https://github.com/imaNNeo/fl_chart/assets/125013689/79a1e08b-cc85-40da-bfbf-b28c4486ba28)

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 locating the barChart GraphArea sizing and bottomTitles layout entry points in the Flutter chart implementation. Trace how tilted and dynamic bottom titles affect the graph's vertical space; done means the graph keeps a fixed height independent of title space, while titles remain readable through scrolling.

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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.