Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Steema/TeeChart-VCL-GitHub-Contributions/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, ensure you have the following installed:Delphi or C++Builder IDE
You need a Delphi or C++Builder IDE to open and compile the project. The project uses VCL (Visual Component Library) components.
Installation
Open the Project
Launch your Delphi or C++Builder IDE and open the project file:This is the main project file that includes:
Unit1.pas- Main form and application logicThemes.pas- Theme definitions for light and dark modes
Build the Project
Build the project using your IDE’s build command (typically
Project > Build or Ctrl+F9).The project will compile and link all necessary units and resources.Using the Application
Fetching Contribution Data
Enter a GitHub Username
In the username field, enter any valid GitHub username. The default example is You can change this to any GitHub user, for example:
sallar:torvalds, gvanrossum, or your own username.Click 'Get Contributions'
Click the “Get Contributions” button to fetch data from the API. The application will:
- Make an HTTP request to
https://github-contributions.vercel.app/api/v1/{username} - Parse the JSON response containing years and contribution data
- Populate the year selector with available years
Viewing Contributions
Once data is loaded, you’ll see:- Contribution Chart: A grid-style chart where each point represents a day
- Color-Coded Intensity: Different colors indicate contribution levels (0-4)
- Level 0: Light gray (no contributions)
- Level 1-4: Progressively darker shades of green (more contributions)
- Month Labels: Short month names (Jan, Feb, Mar, etc.) across the top
- Day Labels: Abbreviated day names (Mon, Wed, Fri) on the left side
Interactive Features
Selecting Different Years
Selecting Different Years
Use the year dropdown to view contributions from different years:The chart will immediately update to show the selected year’s data.
Switching Themes
Switching Themes
Click the “Dark” or “Light” button to toggle between themes:The theme affects:
- Background color
- Text color
- Chart colors
- Control colors (edit boxes, combo boxes)
Changing First Day of Week
Changing First Day of Week
Use the “First Day of Week” dropdown to choose between Sunday (0) or Monday (1):This adjusts the chart layout to match your regional preferences.
Viewing Daily Details
Viewing Daily Details
Hover over any point in the chart to see a tooltip with the formatted date:Example tooltip: “January 1st”, “March 23rd”
Code Examples
Fetching Contributions from API
Here’s how the application downloads and parses GitHub contribution data:Drawing the Contribution Chart
The chart plotting logic maps each contribution day to a point with color-coded intensity:Troubleshooting
Project Won't Compile
Project Won't Compile
Error: Missing TeeChart components or unitsSolution: Ensure TeeChart VCL is properly installed in your IDE. Check that all required units are in your library path:
VCLTee.TeEngineVCLTee.TeeProcsVCLTee.ChartVCLTee.SeriesVCLTee.TeeTools
No Data Appears After Clicking Get Contributions
No Data Appears After Clicking Get Contributions
Possible causes:
- No internet connection
- Invalid GitHub username
- API endpoint is down
- Firewall blocking HTTP requests
sallar or torvalds.Chart Displays Incorrectly
Chart Displays Incorrectly
Issue: Points are misaligned or overlappingSolution: Try changing the “First Day of Week” setting or selecting a different year. The chart layout is calculated based on week boundaries.
Next Steps
Now that you have the application running:- Explore the source code in
Unit1.pasto understand the implementation - Examine
Themes.pasto see how to create custom color themes - Modify the chart properties in the form designer to customize appearance
- Extend the application with additional features like date range filtering or contribution statistics
View Source Code
Check out the full source code on GitHub
