@@ -67,13 +67,13 @@ func CreateContributionGeometry(contributions [][]types.ContributionDay, yearInd
6767 var triangles []types.Triangle
6868
6969 // Base Y offset includes padding and positions each year accordingly
70- baseYOffset := CellSize + float64 (yearIndex )* 7 * CellSize
70+ baseYOffset := 2 * CellSize + float64 (yearIndex )* 7 * CellSize
7171
7272 for weekIdx , week := range contributions {
7373 for dayIdx , day := range week {
7474 if day .ContributionCount > 0 {
7575 height := NormalizeContribution (day .ContributionCount , maxContrib )
76- x := CellSize + float64 (weekIdx )* CellSize
76+ x := 2 * CellSize + float64 (weekIdx )* CellSize
7777 y := baseYOffset + float64 (dayIdx )* CellSize
7878
7979 columnTriangles , err := CreateColumn (x , y , height , CellSize )
@@ -91,8 +91,8 @@ func CreateContributionGeometry(contributions [][]types.ContributionDay, yearInd
9191// CalculateMultiYearDimensions calculates dimensions for multiple years
9292func CalculateMultiYearDimensions (yearCount int ) (width , depth float64 ) {
9393 // Total width: grid size + padding on both sides
94- width = float64 (GridSize )* CellSize + 2 * CellSize
94+ width = float64 (GridSize )* CellSize + 4 * CellSize
9595 // Total depth: (7 days * number of years) + padding on both sides
96- depth = float64 (7 * yearCount )* CellSize + 2 * CellSize
96+ depth = float64 (7 * yearCount )* CellSize + 4 * CellSize
9797 return width , depth
9898}
0 commit comments