Skip to content

Gantt feature#5522

Open
Dayvid-T wants to merge 13 commits intoPhilJay:masterfrom
Dayvid-T:gantt-feature
Open

Gantt feature#5522
Dayvid-T wants to merge 13 commits intoPhilJay:masterfrom
Dayvid-T:gantt-feature

Conversation

@Dayvid-T
Copy link
Copy Markdown

@Dayvid-T Dayvid-T commented Apr 3, 2026

PR Checklist:

PR Description

What does this add/remove/fix/change?

Adds native Gantt chart support via a new GanttChart view. Includes task model, data container, utils, and basic docs.

Key Features:

  • Time-based horizontal bars
  • Scales with number of tasks
  • Custom colors and labels
  • Simple grid/time axis

The feature Fills a missing feature in the library. Provides a clean built-in solution instead of workarounds. Doesn't break anything and follows existing patterns.

Dayvid-T added 13 commits March 27, 2026 12:51
…eedTimeIntervalBuffer, improve GanttUtils documentation and demo
…endering

- Created GanttTask model class to represent indivdual tasks
- Created GanttChartData container for managing task colection
- Created GanttChart custom View that renders via Canvas
- Updated GanttUtils with factory methods for the new model
- Updated TimeIntervalChartActivity demo to use new GanttChart
- Removed reliance on HorizontalBarChart stacked bar rendering
- Adjusted task height and padding for better proportions
- Reduced font sizes for cleaner appearance
- Added border strokes to task bars
- Improved spacing between tasks
- Better margin calculations for chart area
- Enhanced grid line styling
- Increased task height for better readability
- Repositioned labels to align properly on left side
- Increased label column width for task names
- Better vertical centering of labels within bars
- Improved spacing between tasks
- Enhanced font sizing for labels
Copy link
Copy Markdown
Contributor

@hannesa2 hannesa2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The labels were not good, but I adapt it
image

import com.github.mikephil.charting.data.GanttChartData;
import com.github.mikephil.charting.data.GanttTask;

public class GanttChart extends View {
Copy link
Copy Markdown
Contributor

@hannesa2 hannesa2 Apr 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't extends Chart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants