The shoutbox is currently out of service. Join us on Discord instead.
You can help CodeWalrus stay online by donating here.

Note to myself (Statsgraph2)

Started by Juju, December 24, 2015, 08:37:16 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Juju

Quote from: IRC
<OmnomIRC> (!)<*> New topic by Eeems Statsgraph2 http://ourl.ca/22227
<OmnomIRC> (!)<*> New post by comic in Statsgraph2 http://ourl.ca/22227/403212
<comic> IT EVEN UPDATES WHEN I POST
<comic> SO COOL
<OmnomIRC> (#)<BitBucketBot> Zera1125 committed rev c4a9b1f10e11 to ETOR/zera: Small map updates (aesthetic) - https://bitbucket.org/CFD_LLC/esor_bw/changeset/c4a9b1f10e11
<OmnomIRC> (#)<Eeems> comic: It's dynamic :P
<Juju> Looks nice.
<OmnomIRC> (#)<Eeems> JuJu: Thanks
<OmnomIRC> (#)<Eeems> *Juju
<OmnomIRC> (#)<Eeems> Pretty simple to do as well
<Juju> Yeah, some simple trigonometry stuff
<Juju> You should change the font, though
<OmnomIRC> (#)<Eeems> http://www.rafb.me/results/7Acbi360.html
<OmnomIRC> (#)<Eeems> No trig needed
<Juju> like with the other statsgraph
<Juju> really?
<Juju> Oh, filled_Arc
<OmnomIRC> (#)<Eeems> It's a built in font
<OmnomIRC> (#)<Eeems> I was having trouble getting it to consistently work with the other font.
<OmnomIRC> (#)<Eeems> Yeah, converting a percent to an angle is easy
<OmnomIRC> (#)<Eeems> Juju: http://www.rafb.me/results/8HMc3j65.html
<OmnomIRC> (#)<Eeems> in case you want to mess around with my image class
<OmnomIRC> (#)<Eeems> Oh right, forgot I did that
<OmnomIRC> (#)<Eeems> You can do json_encode($img) to get the image data in json form
<OmnomIRC> (#)<Eeems> it would return a json object containing the width, height, type (mime type) and the data uri
<Juju> thanks, gotta look at that
<OmnomIRC> (#)<Eeems> Sure :) If you find ways to improve it send a patch my way
<OmnomIRC> (#)<Eeems> I'd give you access to the repo to do that, but I have code there that is still private
<Juju> eh, tell me once you cleaned these up
<OmnomIRC> (#)<Eeems> I unfortunately can't clean it up.
<OmnomIRC> (#)<Eeems> The image class is standalone though and doesn't require the others
<Juju> hm.
<OmnomIRC> (#)<Eeems> Juju: wait, are you meaning you want to see statsgraph2 source?
<Juju> Why not?
<Juju> So I can totally not steal it for my own >.>
<OmnomIRC> (#)<Eeems> haha, sure hold on a sec
<OmnomIRC> (#)<Eeems> Well, you wont be able to since you wont have ssi_eeems
<OmnomIRC> (#)<Eeems> which it uses heavily
<OmnomIRC> (#)<Eeems> but you can steal concepts from it
<Juju> eh, looks simple to do
<OmnomIRC> (#)<Eeems> Juju: http://www.rafb.me/results/dXud7355.html
<Juju> thanks ^_^
<OmnomIRC> (#)<Eeems> np
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

DJ Omnimaga

Not sure if we need a Statsgraph update since what we use (the version you wrote yourself in 2011 before Eeems started updating it) does the job fine for the time being, but it could be handy for when we have zero-post days (eg downtime or inactivity), since your version skips 0-post days.


What I would like to see, however, is the ability to use parameters such as statsgraph.php?pageviews , ?newmembers ?onlinetodayrecord and ?newtopics , so that instead of new posts we can see other stats as well.

It would also be cool if we could specify the width so that the graph (not the text) fits a specific size like Cemetech.

Juju

I didn't had time to explain anything in the OP, but you should check the thread on Omnimaga, Eeems added a graph for each user. But yeah, there's a lot of fun stuff we could graph.
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

DJ Omnimaga

Yeah I saw that. I wonder what happens when someone has a negative post count number O.O

Anyway yeah I guess those would be cool. I would probably focus on adding the suggestions above and maybe the ability to choose the color via URL parameters. For example, http://codewalr.us/statsgraph2.php?display=topics&color=0000ff or other things like that. That would be handy for our stats page.

You should ask permission to him first if you decide to use it here, though.

Juju

Oh, that would be fun. I guess he already gave me some permission by giving me the code as in the discussion in the OP.
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

DJ Omnimaga


Powered by EzPortal