bugGNU FM - Bugs: bug #26824, Graph of daily scrobblings on...

 
 

bug #26824: Graph of daily scrobblings on stats page

Submitter:  Oscar C.P. <oscarcp>
Submitted:  Wed 17 Jun 2009 01:34:20 AM UTC
   
 
Category:  nixtape/alpha Severity:  3 - Normal
Item Group:  UI Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 17 Jun 2009 05:29:20 PM UTC, comment #3: 

Yes, I didn't think about that because there aren't too much client side things in the alpha but it's true. The graphs could be generated on client side, freeing the server from that load.

Although, it will load the client machine, but it's fine if the user can deactivate the graph options, because if the user does not have a good computer, generating all graphs and stuff could take some time and it will take down the user experience on the website.

But it's a very good idea, i totally forgot about client side! Thanks!

Oscar C.P. <oscarcp>
Wed 17 Jun 2009 03:19:11 AM UTC, comment #2: 

I don't know if it would help with generating time but why not use some javascript to generate the graph ?( like flot: http://code.google.com/p/flot/ ). It's based on jquery and is MIT licensed.

It could create graphs based on existing tables and flot also enable some interactivity ( which may be usefull for time based stats ).

David Mignot <idflood>
Group Member
Wed 17 Jun 2009 01:58:56 AM UTC, comment #1: 

Sorry, I missed something. Of course if this is implemented, there will be a lot of users by then, so the graph generating times must be calculated. Otherwise, there would be a group of users (I don't know how much people are now, imagine +1.000) that will generate the graph at the same time, overloading the server unnecessarily.

Oscar C.P. <oscarcp>
Wed 17 Jun 2009 01:34:20 AM UTC, original submission:  

This is more a suggestion than a bug filing but I didn't know where to put it.

I suggest to do a graph with the daily scrobblings to libre.fm instead of the simple "Scrobblings by day" chart.

This can be accomplished using PyCHA for example (http://bitbucket.org/lgs/pycha/wiki/Home). Due to the quantity of users and constant updating, this graph should be generated weekly starting from the first week of activity from the user, p.e. if I registered in 2009-05-20 the first graph should be generated in 2009-05-27, and every week since then, other user registered in 2009-06-15, first graph on 2009-06-22 and every week since then. This distributes the graph generating load into different times, instead of doing everything at the same time.

It would show up the last 7 days, and if the users wants to see another time window, it can be generated on-the-fly.

Hope you like this suggestion! :)

Oscar C.P. <oscarcp>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by idflood (Posted a comment)
  • -email is unavailable- added by oscarcp (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code