imaNNeo / imaNNeo/fl_chart

More control over the grid line

Open
#1,794 0 comments 1 reaction 0 assignees View on GitHub
Bar Chart enhancement
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

Hey everyone,

I need the vertical grid lines on the bar chart to align exactly with the middle of the bars for odd-numbered hours. It’d be awesome if we had more control over the grid to make that happen.

Right now, the best workaround I’ve found is to set the verticalInterval to 1/24 and check if the rounded number (after multiplying by 24) is odd. But since I can’t control where the first vertical line starts (it should be at the halfway point of the first bar, around 00:00), the lines end up being misplaced.

Thanks in advance!

Screenshot 2024-11-28 at 16 42 41

Contributor guide

Open the contributing guide

Research direction

Start by tracing the bar chart grid configuration and the verticalInterval behavior in the repository. Check how the first vertical grid line is positioned relative to the bars, then determine how configurable positioning could support the requested half-bar alignment. Done means vertical lines can be aligned with the middle of odd-numbered hourly bars without the current workaround.

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.