Great job on the fix! And I'd be very happy to have you test out color fixes. If you want to force an update, you can delete /img/ppd/[userid].png. If you come up with a better color scheme, it will also change the scheme for the site-wide post stats graph, which would be nice.
I saw this and thought it was quite cool, but very difficult to understand. Could you expand the width, narrow the range, and add a legend? Better yet, experiment with jqPlot.

EDIT: On second thought, Flot would be better.
I'm quite happy with the graph library I rolled myself; it's nice and lightweight, does what I need, and doesn't do a whole lot else. I think a legend or explanation of some kind under this graph (and the whole-site posts graph) isn't a bad idea, though.
KermMartian wrote:
I'm quite happy with the graph library I rolled myself; it's nice and lightweight, does what I need, and doesn't do a whole lot else.
Mind teaching me how to roll one as good as yourself?
comicIDIOT wrote:
KermMartian wrote:
I'm quite happy with the graph library I rolled myself; it's nice and lightweight, does what I need, and doesn't do a whole lot else.
Mind teaching me how to roll one as good as yourself?
I'd be happy to try, although I get the impression that your PHP skills are already pretty cool. It's mainly just an issue of learning the image manipulation library, GD2, at that point.
Cemetech seems to hang on loading this page which comic previously identified as having division by 0. www.cemetech.net/forum/profile.php?mode=viewprofile&u=2647

Also, I miss having the moving average line. It added to the readability of the graph, imho, because post counts can fluctuate wildly day-by-day.
elfprince13 wrote:
Cemetech seems to hang on loading this page which comic previously identified as having division by 0. www.cemetech.net/forum/profile.php?mode=viewprofile&u=2647
What?! I still managed to get a division by zero error on line 28, which should instead be on line 35 now. I wonder if it's refusing to regenerate because it's already created the image, I'll try deleting that (if applicable).

Nope, didn't work. I just re-puplished the PHP file, and reloaded the page and it loaded fairly fast. I'm guessing the update was reversed somehow.
I like it. It just seems a bit compressed to me. Maybe make the image a lot wider, but display it at the current size on users' profiles so we can open it in a new tab for more detail?
I doubled the width - only on newly rendered graphs or at the turn of a new day (24hrs?) or you can view mine by visiting my profile with the link below - but haven't found a great place to add the graph to accommodate narrower screens.

When the profile template is revamped, it'll accommodate the larger graph better.
aww man, thanks for adding this, now I am seeing that my post count has taken a huge dip Sad

oh well, I guess that means time to be more active!
comicIDIOT wrote:
I doubled the width - only on newly rendered graphs or at the turn of a new day (24hrs?) or you can view mine by visiting my profile with the link below - but haven't found a great place to add the graph to accommodate narrower screens.
I was thinking make the graph that wide, but display it scaled down on the user profile page, just to get an overview of their posting pattern. If we want detail we can always right click and select "Open image in new tab."
How about a little bit of Javascript that will pop it from 50% to 100% and back when clicked on? It's definitely way too big in its current form. One concern I have is that I don't want it to be so tall that on a 768px-tall screen you can see any of the User's Files section.
Hmm, I have a quick suggestion, do you think you could make the chart a little more legible? I am having some problems reading some of the text x.x

(wait, was this asked already?)
I just noticed the larger version, it looks great -- though maybe 100 pixels too wide? I'd be fine either way, but trimming it down just a little would make it invade the space a little less.
KermMartian wrote:
How about a little bit of Javascript that will pop it from 50% to 100% and back when clicked on?


How about....a little bit of CSS?

Code:
img.user_graph_stats:hover{ /* yada yada */ }



Where a little bit of Javascript would nice is if we want to prevent the graph generation from holding up profile-page rendering, and have a nice little loading gif as a place holder.

elfprince13 wrote:
KermMartian wrote:
Here's a little question I've been debating in my head: should the graphs be generated once per day, when the user's profile is first loaded

This one.
KermMartian wrote:
even though it will be a slightly slower page-load the first time a user's profile is viewed each day.


Code:

<img id="user_stat_img" src="loading.gif" />
<script type="text/javascript">
        var stat_img     =    new Image();
   stat_img.src = "/scripts/user_stat_gen.php?userid=n";
        stat_img.onLoad = function swap_in_stats(){
                document.getElementByID('user_stat_img').src = "/scripts/user_stat_gen.php?userid=n";
        };

 </script>


DJ_O wrote:
That would be nice. Maybe something like this?

http://djomni.57o9.org/random/postbymonthdj.png

Quote:
I really like that concept, DJ. Kerm, maybe a generaic 12 month (post per month) graph on the users page, and a link to a more detailed report?

I think it would be much more interesting to have the graph be extensive (and take the format I suggested above) spanning the time from join date to the present.

Quote:

Else, I guess maybe something like the post stats graph on Cemetech.

This is what I had in mind graphically.
Oh yeah, I had thought about how I was going to implement that, and then completely forgot about that. One of the main problems is that currently the graph generation isn't a completely separate script for the sake of limiting the number of different scripts the site has. It piggybacks on the data already pulled for profile display to generate the graph, but I'm sure I can still leverage that somehow while doing what you suggested. One significant factor, though, is that if you look at the bottom corner of the graphs, they take 1-2 seconds to generate, so I'm not too worried about the page load times.
Fair enough. I'm just thinking about the couple page-hangs I saw when the divide by zero bug was happening.
elfprince13 wrote:
Fair enough. I'm just thinking about the couple page-hangs I saw when the divide by zero bug was happening.
Sounds very likely to me. Comic, let me know when the profile page is going to get cleaned up, if you need any feedback, or if you need me to work on it during my free time. Wink
If you could get started in your free time, that'd be great! I've got some projects underway as well and I too will work on something in my free time.
comicIDIOT wrote:
If you could get started in your free time, that'd be great! I've got some projects underway as well and I too will work on something in my free time.
That was a bit of sarcasm, by the by; I have negative free time until the evening of October 27th, when I return from my conference in Portugal. I'm depriving my paper of writing time even by making posts right now. Sad
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 2 of 3
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement