Re: [fossil-users] By week-of-year statistics
On Wed, Jul 17, 2013 at 3:53 PM, Stephan Beal sgb...@googlemail.com wrote: On Wed, Jul 17, 2013 at 3:00 PM, Richard Hipp d...@sqlite.org wrote: While you are on the subject of the stats_report page, could you look into possibly scaling the line lengths if they grow to large. See, for example http://core.tcl.tk/tcl/stats_report?view=byuser Andreas K pointed that repo out to me a few weeks ago. They're literally... off the charts. Yes, i'll look into a solution for that. (Ideas are of course welcomed - i was hoping to avoid traversing the data twice in order to calculate relative sizes.) Fixed and much improved: http://www.fossil-scm.org/index.html/vdiff?from=47ee082a75d42263to=674a24a3603ed201sbs=1 the bars now use a relative width based on the maximum event count for the current report's query and the longest bar (most events) has a width of 100%, so resizing the browser window resizes the bars. This requires running through the queries twice, but the effect is much nicer than the absolute values used before. -- - stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] By week-of-year statistics
On Sat, Jul 20, 2013 at 6:45 PM, Stephan Beal sgb...@googlemail.com wrote: Fixed and much improved: http://www.fossil-scm.org/index.html/vdiff?from=47ee082a75d42263to=674a24a3603ed201sbs=1 Demo: http://fossil.wanderinghorse.net/repos/cwal/index.cgi/stats_report?view=byweek try resizing your browser in that view. -- - stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] By week-of-year statistics
Thus said Stephan Beal on Sat, 20 Jul 2013 18:48:44 +0200: http://fossil.wanderinghorse.net/repos/cwal/index.cgi/stats_report?view=byweek try resizing your browser in that view. Looks like it works great. Just one observation; I find that the alternating row colors are distracting in the bar graph area. I edited the CSS locally and just commented out the row1 background-color and I thought it looked better. Andy -- TAI64 timestamp: 400051ead348 ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] By week-of-year statistics
On Sat, Jul 20, 2013 at 8:12 PM, Andy Bradford amb-sendok-1376935974.nbhjmboafacidibep...@bradfords.org wrote: Thus said Stephan Beal on Sat, 20 Jul 2013 18:48:44 +0200: http://fossil.wanderinghorse.net/repos/cwal/index.cgi/stats_report?view=byweek try resizing your browser in that view. Looks like it works great. :) Just one observation; I find that the alternating row colors are distracting in the bar graph area. That's CSS. IIRC the core fossil repo (or default style) does not have colors for the CSS classes tr.row0 and tr.row1 by default. I edited the CSS locally and just commented out the row1 background-color and I thought it looked better. Personal preference - that's why it's in CSS :). Thanks for the feedback! -- - stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] By week-of-year statistics
On Jul 17, 2013 12:58 AM, Stephan Beal sgb...@googlemail.com wrote: On Wed, Jul 17, 2013 at 12:35 AM, B Harder brad.har...@gmail.com wrote: Of top of head, reflexive position is that week numbers are running in wrong order, but if it's reversed, latest would be at bottom of page. i sorted them DESC because i _suspect_ the most common use case will be checking the current week. That's pure speculation, though, and i'm not emotionally attached to the current (reverse) sorting. That made me wonder though, what of vertical bars vs. horizontal? Do you mean run the week numbers horizontally and count bars vertically? Yes. If the width of the bars was more narrow, obviously more could fit, or alternatively, instead of bars, perhaps a line graph, showing the general shape. I'm just throwing out unedited ideas ;) What you've got is already cool, so take these ideas FWTW. When the week has 53 years that list gets really wide. When i had the week list as part of the byyear view it was wrapping almost twice for most years in the main fossil repo. -- - stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] By week-of-year statistics
On Wed, Jul 17, 2013 at 10:04 AM, B Harder brad.har...@gmail.com wrote: Yes. If the width of the bars was more narrow, obviously more could fit, or alternatively, instead of bars, perhaps a line graph, showing the general shape. If i use the week numbers horizontally then it's really wide (and i don't much like side-scrolling, the new sbsdiff being the sole exception). I'm just throwing out unedited ideas ;) Keep 'em coming :) What you've got is already cool, so take these ideas FWTW. i landed on the current view more or less for consistency reasons. i.e. i got to copy/paste (reuse) parts of the other reports. What i would eventually like to do is start out at the year level and then allow one to drill down to the month/week/day level. My instinct was for the views to each look similar (for consistency) but now that i think about it, that's not necessary - the data are different, and if it's better to reformat them for one particular view then... why not? -- - stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] By week-of-year statistics
The stats_report webpage is largely decoupled from the rest of Fossil, so I went ahead and merge the changes into trunk, even though they might not be considered finished. It is OK for development to continue on trunk. (Just don't break the build! Or introduce a vulnerability!) While you are on the subject of the stats_report page, could you look into possibly scaling the line lengths if they grow to large. See, for example http://core.tcl.tk/tcl/stats_report?view=byuser -- D. Richard Hipp d...@sqlite.org ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] By week-of-year statistics
On Wed, Jul 17, 2013 at 3:00 PM, Richard Hipp d...@sqlite.org wrote: The stats_report webpage is largely decoupled from the rest of Fossil, so I went ahead and merge the changes into trunk, even though they might not be considered finished. It is OK for development to continue on trunk. Thank you :) (Just don't break the build! Or introduce a vulnerability!) i've tried to be careful with the %s/%t/%h, etc, but if anyone out there noticed a misuse, please point it out or patch it! While you are on the subject of the stats_report page, could you look into possibly scaling the line lengths if they grow to large. See, for example http://core.tcl.tk/tcl/stats_report?view=byuser Andreas K pointed that repo out to me a few weeks ago. They're literally... off the charts. Yes, i'll look into a solution for that. (Ideas are of course welcomed - i was hoping to avoid traversing the data twice in order to calculate relative sizes.) -- - stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
[fossil-users] By week-of-year statistics
Hi, all, i've just added week-of-year (a.k.a. calendar week[1]) support to /stats_report and /timeline: http://fossil.wanderinghorse.net/repos/cwal/index.cgi/stats_report?view=byyear and i'm looking for input on the following: a) When showing by-week links for the combined year/month view it's way too slow, so i've disabled that: http://fossil-scm.org/index.html/info/0019550a03 (see the last part of that diff) If someone can suggest a way to speed that up (it's currently taking 4.5s on my machine with the main fossil repo) i would be much obliged. b) If someone with a better eye for design (that'd be just about anyone!) can suggest a less ugly/cramped presentation for how the week numbers are listed (see the first link above), i'd likewise be much obliged. Thank you in advance! [1]: it uses whatever definition sqlite3 uses for week of year, and that's non-negotiable ;). -- - stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] By week-of-year statistics
On Tue, Jul 16, 2013 at 5:57 PM, Stephan Beal sgb...@googlemail.com wrote: b) If someone with a better eye for design (that'd be just about anyone!) can suggest a less ugly/cramped presentation for how the week numbers are listed (see the first link above), i'd likewise be much obliged. Here's a slightly more-filled-out one: http://fossil.wanderinghorse.net/repos/whio/index.cgi/stats_report?view=byyear but the main fossil repo is the best place to get an idea of how it looks with all weeks of a year being represented. -- - stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] By week-of-year statistics
This looks cool. Will this data be available via the json interface? Being able to aggregate the stats over a lot of different fossils would be useful to some of us. On Tue, Jul 16, 2013 at 9:10 AM, Stephan Beal sgb...@googlemail.com wrote: On Tue, Jul 16, 2013 at 5:57 PM, Stephan Beal sgb...@googlemail.comwrote: b) If someone with a better eye for design (that'd be just about anyone!) can suggest a less ugly/cramped presentation for how the week numbers are listed (see the first link above), i'd likewise be much obliged. Here's a slightly more-filled-out one: http://fossil.wanderinghorse.net/repos/whio/index.cgi/stats_report?view=byyear but the main fossil repo is the best place to get an idea of how it looks with all weeks of a year being represented. -- - stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users -- Matt -=- 90% of the nations wealth is held by 2% of the people. Bummer to be in the majority... ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] By week-of-year statistics
On Tue, Jul 16, 2013 at 6:49 PM, Matt Welland estifo...@gmail.com wrote: This looks cool. Will this data be available via the json interface? Being able to aggregate the stats over a lot of different fossils would be useful to some of us. The thought has crossed my mind, but i haven't decided upon an interface for it. /stats_report is only a couple months old and i haven't hacked on the JSON bits in that time. Do you have a particular JSON interface in mind for such reports? -- - stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] By week-of-year statistics
On Tue, Jul 16, 2013 at 6:49 PM, Matt Welland estifo...@gmail.com wrote: This looks cool. Will this data be available via the json interface? Being able to aggregate the stats over a lot of different fossils would be useful to some of us. New version: http://fossil.wanderinghorse.net/repos/cwal/index.cgi/stats_report then select the By week link, or just click this: http://fossil.wanderinghorse.net/repos/cwal/index.cgi/stats_report?view=byweek @Richard: as i recall, that's a report you specifically asked for? -- - stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] By week-of-year statistics
Very cool, Stephan! On Jul 16, 2013 1:30 PM, Stephan Beal sgb...@googlemail.com wrote: On Tue, Jul 16, 2013 at 6:49 PM, Matt Welland estifo...@gmail.com wrote: This looks cool. Will this data be available via the json interface? Being able to aggregate the stats over a lot of different fossils would be useful to some of us. New version: http://fossil.wanderinghorse.net/repos/cwal/index.cgi/stats_report then select the By week link, or just click this: http://fossil.wanderinghorse.net/repos/cwal/index.cgi/stats_report?view=byweek @Richard: as i recall, that's a report you specifically asked for? -- - stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] By week-of-year statistics
On Tue, Jul 16, 2013 at 5:57 PM, Stephan Beal sgb...@googlemail.com wrote: b) If someone with a better eye for design (that'd be just about anyone!) can suggest a less ugly/cramped presentation for how the week numbers are listed (see the first link above), i'd likewise be much obliged. Ignore that - that view was scrapped and replaced with a separate page: http://fossil.wanderinghorse.net/repos/cwal/index.cgi/stats_report?view=byweek @Brad/Matt: improvement suggestions are welcomed. -- - stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] By week-of-year statistics
Of top of head, reflexive position is that week numbers are running in wrong order, but if it's reversed, latest would be at bottom of page. That made me wonder though, what of vertical bars vs. horizontal? Just tossing ideas... On Jul 16, 2013 1:50 PM, Stephan Beal sgb...@googlemail.com wrote: On Tue, Jul 16, 2013 at 5:57 PM, Stephan Beal sgb...@googlemail.comwrote: b) If someone with a better eye for design (that'd be just about anyone!) can suggest a less ugly/cramped presentation for how the week numbers are listed (see the first link above), i'd likewise be much obliged. Ignore that - that view was scrapped and replaced with a separate page: http://fossil.wanderinghorse.net/repos/cwal/index.cgi/stats_report?view=byweek @Brad/Matt: improvement suggestions are welcomed. -- - stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users