Cool stats!

Nao

  • Dadman with a boy
  • Posts: 16,079
Cool stats!
« on November 26th, 2013, 07:21 PM »Last edited on December 4th, 2013, 02:15 PM
Feature: Statistics charts
Developer: Nao
Target: everyone
Status: 90% (stats page believed complete; planning to implement on other stats, but not right now.)

http://wedge.org/do/stats/

Look at that... :)

Needs some work, most notably I'll implement some select boxes to automatically refresh data (or Ajaxively refresh it), so you can get a 'range' of your choice, and/or disable the entries that you're not interested in (new members, etc.)
But this is what I managed to cook up after a few hours of work, and I'm very happy with it. Great plugin, really! It only had a bug which prevented the tooltips from working, so I fixed that, and I may start contributing to the project, because I'm thinking of adding more details in tooltips, etc.

Feedback welcome, as always!

:edit: Read following posts to view progress on implementation, which is now 100% on the main stats page.
:edit: Moved the topic to public!

Re: Cool stats!
« Reply #1, on November 26th, 2013, 07:56 PM »
Looks really cool!
But this should be visible for admins only :)




Re: Cool stats!
« Reply #2, on November 27th, 2013, 12:27 AM »
Stats, for admins only..? Well, I could always add privacy settings to these things (and I guess I can, this privacy system is as flexible as one wants it to be), but I've never seen anyone complain about that, really...
Of course, as it's more graphical, it's easier to see that the participation level on wedge.org is decreasing steadily, but the same can be seen on the sexy-less page, so... It's just less striking, I guess. But it's not a problem, I'm not in a competition anyway. I just like nice charts...!
Re: Cool stats!
« Reply #3, on November 27th, 2013, 05:02 PM »
No one else..?

Re: Cool stats!
« Reply #4, on November 27th, 2013, 08:00 PM »
I like it, tested today morning with my mobile phone and it still looks very good, even on a 480x800 Screen resolution. Welll done :cool:

Re: Cool stats!
« Reply #5, on November 28th, 2013, 01:17 PM »
Thanks :)
Yeah, it's supposed to look good in mobile, actually this is the first I saw of that jQuery plugin -- on my smartphone. I got the immediate 'wow' effect, and although there are tons of other graph plugins, I settled on that one. I updated it yesterday to be more in line with my coding guidelines[1]. Once the updated stats page is out for the public to see (or at least Wedge is out), I'll try to do a pull request over there, and offer my changes.

I made a small change to reduce the height of charts in mobile. Also, I'm working on 'modularizing' the list of stats to be shown there.
 1. Spacinazi etc., overhauled semi-colon handling to allow minifying through Packer, and fixed tooltips to work in Chrome.
Re: Cool stats!
« Reply #6, on November 30th, 2013, 12:23 AM »
So... I've been working on rewriting the entire daily/monthly stat stuff, at this point. It just 'didn't' work the way it used to, with the new chart system.

I'm working with ranges at this point. You'll get a select box, with these (at least) three options:
- Last 30 days (daily stats) (default)
- Last 12 months (monthly stats)
- Custom: I'm planning to add an additional range type selector, where you can select a beginning month, and an end. If you choose an end month, you'll get monthly stats; otherwise, daily stats for that month.

Does that seem sensible at all..? Or overkill? Or not enough?
Re: Cool stats!
« Reply #7, on November 30th, 2013, 01:15 PM »
Updated the wedge.org version with the latest.
It still doesn't allow you to change your scope/range (don't bother with the select box, it does nothing), but this one is updated to show the last year's statistics.

It's important to point out -- I made a change to gather monthly statistics by average, rather than sum. I'm still determining whether it's for the best, and whether I should make SOME statistics sums, and the rest averages. e.g., number of registrations: it might be best as a sum. Hits: I don't know. Topics, posts: I think an average is best..??!!
The thing to remember with averages, is that they solve the problem of harmonizing months with a large difference in days (namely, from January to February, you might lose up to 15% even when retaining the same averages.)

Opinions are welcomed.
Re: Cool stats!
« Reply #8, on November 30th, 2013, 05:54 PM »
I think I'll be going for filters. Allowing you to get either averages or sums. That way, I don't have to choose for you, ah ah....
Re: Cool stats!
« Reply #9, on December 1st, 2013, 11:58 PM »
Updated the site with a more recent version; it's far from working 'just fine', but at least, its select boxes are now working. ;)
Posted: December 1st, 2013, 11:44 PM

Unrelated, but I also added a follow_me equivalent to Wilderless topic pages. What do you think, guys....? It won't work on all browsers for now (needs some settings modified in Firefox and Chrome), but in mobile browsers it's functional (at least iOS 6.1+ and Chrome for Android). Thing is, in Chrome Android, I'm upset that the fact that the feature is obviously implemented through a JavaScript module and NOT hardware accelerated at all. It makes little sense to enable it on Chrome Android, then, because it disrupts the experience. Hmm yeah, I'm disabling it for this.
Re: Cool stats!
« Reply #10, on December 2nd, 2013, 11:49 PM »
Updated to latest version. It's starting to take shape. Unfortunately, there seem to be issues with the scale being too low on wedge.org, but I can't reproduce this on my local install. Hmm.
Still, plenty of things to play with, such as automatic updating of the 'total' and 'average' fields, new filters/ranges, and tooltips can now be multi-line (required a lot of changes to the original library), and have associated names.
Re: Cool stats!
« Reply #11, on December 3rd, 2013, 01:50 PM »
So... It's all done, I think. There are probably tons of things to improve, but it all works right now, and I'm not touching it anymore until I'm committing that.

I'll need opinions on the final result, please! Can't keep talking to myself... :P

I think it could use a 'lifetime' stats range, giving out results in quarterly groups, or something. Apart from that, I'm all good...
Re: Cool stats!
« Reply #12, on December 3rd, 2013, 08:58 PM »
I feel like I'm on the New Revs topic, being the only one to post... :P

Re: Cool stats!
« Reply #14, on December 3rd, 2013, 11:54 PM »
Quote from Nao on December 3rd, 2013, 01:50 PM
So... It's all done, I think. There are probably tons of things to improve, but it all works right now, and I'm not touching it anymore until I'm committing that.

I'll need opinions on the final result, please! Can't keep talking to myself... :P

I think it could use a 'lifetime' stats range, giving out results in quarterly groups, or something. Apart from that, I'm all good...
Think it looks really sexy. Nice work!
But what about the Page Hits? Bug or not activated on Wedge?
It always shows 0.


Re: Cool stats!
« Reply #15, on December 4th, 2013, 12:16 AM »
Yes, they're disabled in wedge.org, because they obviously add one DB hit per page, and I thought Google Analytics would be more accurate anyway.[1]
The latest update (not live here, though!) actually accounts for disabled items. Only 'hits' for now, but in the end, could add more stuff.
Hits are usually not even shown at all, but they used to be enabled, so the old stats (< 2012) still have hits in them. You can look at them, if you want...
 1. It took me years to add Analytics, though... I figured, no need to force a small script to load for everyone, if I'm never looking at these stats. I only installed it because I wanted to know the IE market share here. Still less than 5%, all versions included. Lulz.