git_stats icon indicating copy to clipboard operation
git_stats copied to clipboard

How to extend charts ?

Open stephanenicolas opened this issue 11 years ago • 2 comments

Is there any documentation to extend git stats ?

For instance, I'd like to get the commit hours per day / per week of each author ?

Thanks for this project.

S.

stephanenicolas avatar Apr 14 '13 07:04 stephanenicolas

Use the source, Luke ;) Every Author has Activity created from his commits. Add your methods in these classes and than use them in ActivityCharts.

tomgi avatar Apr 21 '13 18:04 tomgi

Hi Tomasz,

thanks for answering, but I am a Java developer. Since I found your project, and even more after you wrote to me, I tried but couldn't understand a single line of your ruby project. The syntax doesn't have any meaning for me and I couldn't change anything and add the features I wanted.

Thanks for your response anyway.

2013/4/21 Tomasz Gieniusz [email protected]

Use the source, Luke ;) Every Authorhttps://github.com/tomgi/git_stats/blob/master/lib/git_stats/git_data/author.rbhas Activityhttps://github.com/tomgi/git_stats/blob/master/lib/git_stats/git_data/activity.rbcreated from his commits. Add your methods in these classes and than use them in ActivityChartshttps://github.com/tomgi/git_stats/blob/master/lib/git_stats/stats_view/charts/activity_charts.rb .

— Reply to this email directly or view it on GitHubhttps://github.com/tomgi/git_stats/issues/14#issuecomment-16740410 .

Stéphane NICOLAS, OCTO Technology Développeur & Consultant Android / Java .......................................................... 50, Avenue des Champs-Elysées 75008 Paris +33 (0)6.26.32.34.09 www.octo.com - blog.octo.com www.usievents.com ...........................................................

stephanenicolas avatar May 25 '13 08:05 stephanenicolas