imaNNeo / imaNNeo/fl_chart

Non-overlapping getTitlesWidget/SideTitleWidgets

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

Description

getTitlesWidget/SideTitleWidgets overlap when there are too many x-axis entries, see image.

![Image](https://github.com/user-attachments/assets/8ede1dcb-6026-4591-97ec-0537f4cbdc27)

Feature Request is to automatically call getTitlesWidget() only on x-values where it makes sense, i.e. the first x-value, the last x-value, and non-overlapping x-values in between, see second image.

![Image](https://github.com/user-attachments/assets/72baa469-bab9-43b9-a923-60d1ad7c6ee6)

Or is there currently a way to achieve this?
I created the second image by hand.

Contributor guide

Open the contributing guide

Research direction

Start by locating the getTitlesWidget and SideTitleWidgets implementation and reproduce the overlap with a chart containing many x-axis entries. The work is done when labels can be selected to keep the first, last, and intermediate non-overlapping values visible, with existing behavior preserved where labels do not overlap.

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
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.