News for hackers. Stuff that matters.
Re:Peity - Little charts for little projects by gfodor on Thursday June 21, 2012 @06:45PM (#4144551)
The combination of sparklines and pie charts may just cause Tufte's head to explode.
Re:Peity - Little charts for little projects by ema on Friday June 22, 2012 @04:56AM (#4146008)
Just because Tufte has taste doesn't mean he can't deal with ugliness.
Re:Peity - Little charts for little projects by SCdF on Thursday June 21, 2012 @06:54PM (#4144577)
"Peity (sounds like deity)"

As someone who pronounces deity day-a-tee, I'm guessing you actually mean pee-a-tee and not pay-a-tee.

Re:Peity - Little charts for little projects by cbsmith on Thursday June 21, 2012 @07:21PM (#4144648)
Yeah, I was hung up on that as well. Obviously no reflection on the product/code/whatever, but when you go with "sounds like", try to pick a word that can only be pronounced one possible way.
Re:Peity - Little charts for little projects by benpickles on Thursday June 21, 2012 @07:03PM (#4144601)
Day-a-tee sounds about right - but I'm not precious. It was a deliberate miss-spelling of "pie" with some other letters added on... and quite possibly a mistake.
Re:Peity - Little charts for little projects by StavrosK on Thursday June 21, 2012 @08:07PM (#4144778)
Why not just call it Piety?
Re:Peity - Little charts for little projects by benpickles on Friday June 22, 2012 @04:38AM (#4145980)
Yes I wish I'd done that 2 1/2 years ago!
Re:Peity - Little charts for little projects by StavrosK on Friday June 22, 2012 @05:15AM (#4146048)
Me too :-P
Re:Peity - Little charts for little projects by jawr on Friday June 22, 2012 @05:13AM (#4146045)
Skimming over the front page, I read it as petite.
Re:Peity - Little charts for little projects by osi on Thursday June 21, 2012 @04:12PM (#4143963)
Re:Peity - Little charts for little projects by zheng on Thursday June 21, 2012 @05:18PM (#4144238)
So let's say I don't care about compatibility, what is the real differences between Peity and jQuery sparklines?
Re:Peity - Little charts for little projects by jonstjohn on Friday June 22, 2012 @09:58AM (#4146758)
Size would be one, Peity is 5k uncompressed, sparklines is 119k - big difference there.
Re:Peity - Little charts for little projects by masonhensley on Thursday June 21, 2012 @05:40PM (#4144343)
The new version of sparklines is interactive. I could be 100% wrong, but on quick inspection Piety has less functionality and less compatibility.
Re:Peity - Little charts for little projects by septerr on Thursday June 21, 2012 @06:30PM (#4144503)
Never knew about Sparkline...cool. Now that I've seen it, I second your question.
Re:Peity - Little charts for little projects by tcdent on Thursday June 21, 2012 @10:41PM (#4145151)
Defining colors with the non-W3C-defined term 'colour' is cute, but annoyingly inconsistent with browser terminology.
Re:Peity - Little charts for little projects by benpickles on Friday June 22, 2012 @08:09AM (#4146407)
Just because it's a standard doesn't mean it's spelt correctly ;) HTTP referer [sic] comes to mind http://en.wikipedia.org/wiki/HTTP_referer
Re:Peity - Little charts for little projects by allolex on Friday June 22, 2012 @04:58AM (#4146015)
Reminds me of my .tmux.conf
Re:Peity - Little charts for little projects by pvidler on Thursday June 21, 2012 @05:19PM (#4144242)
Very interesting, but most of these examples look like they would be fairly nonsensical to someone without JavaScript enabled (especially the line chart). To say nothing of those who use screen readers.

Is there a handy way of providing some more meaningful 'alt' text? Perhaps just ignore text in the element? (I didn't check -- you may already be doing this, but I didn't see it mentioned).

Re:Peity - Little charts for little projects by 1monthlater on Friday June 22, 2012 @07:59AM (#4146378)
Who isn't using javascript?
Re:Peity - Little charts for little projects by pvidler on Sunday June 24, 2012 @01:55AM (#4152702)
People who keep it disabled on all but a few white-listed sites.
Re:Peity - Little charts for little projects by pyre on Thursday June 21, 2012 @04:33PM (#4144053)
In the "Events" section, changing the value to 5/5 results in an empty pie chart, rather than a full one. 0-4 out of 5 all work correctly.

Edit:

The violet 16px 7/7 example in the "Tips" section on the page is also missing.

Browser: Chromium 18.0.1025.151 (Developer Build 130497 Linux) Ubuntu 11.04

Re:Peity - Little charts for little projects by keithpeter on Thursday June 21, 2012 @04:41PM (#4144084)
Works as expected (full pie) on Firefox 13/Ubuntu
Re:Peity - Little charts for little projects by pvidler on Thursday June 21, 2012 @05:21PM (#4144253)
Also works fine on mobile safari (iPad).
Re:Peity - Little charts for little projects by reustle on Thursday June 21, 2012 @04:35PM (#4144059)
Works fine for me (Chrome)
Re:Peity - Little charts for little projects by kmfrk on Friday June 22, 2012 @07:46AM (#4146344)
This looks better than anything else I have seen in graph tools. Shame about the lack of fall-back options, though.

What does it look like, if a browser doesn't support the graphs? Do they just disappear?

Re:Peity - Little charts for little projects by BCM43 on Friday June 22, 2012 @10:56AM (#4146991)
I was running without javascript, and was confused for a second when there were no example graphs.
Re:Peity - Little charts for little projects by mseebach on Thursday June 21, 2012 @09:03PM (#4144942)
I used these in a small mockup app a little while ago. I'm aware of their inappropriateness for representing data, but for adding quick color, pop and smartness to a prototype, they performed beautifully.
Re:Peity - Little charts for little projects by camtarn on Friday June 22, 2012 @07:02AM (#4146233)
The 'delimeter' param is misspelled... should be 'delimiter'.
Re:Peity - Little charts for little projects by reustle on Friday June 22, 2012 @10:59AM (#4147007)
Not my project, but you can open an issue or pull request :) https://github.com/benpickles/peity
Re:Peity - Little charts for little projects by prezjordan on Thursday June 21, 2012 @07:47PM (#4144713)
Wow, awesome! I was going to roll my own (pie charts) this weekend, but now I don't have to (probably wouldn't have been able to, anyway). This looks great, thanks!
Re:Peity - Little charts for little projects by CognitiveLens on Thursday June 21, 2012 @04:22PM (#4144013)
This looks great, and because it's based on <canvas> rendering, everything looks perfectly sharp on retina displays...
Re:Peity - Little charts for little projects by benpickles on Thursday June 21, 2012 @05:44PM (#4144357)
Actually it took a little work to get things crisp on retina displays - https://github.com/benpickles/peity/blob/master/jquery.peity...

I think I got the technique from here - http://joubert.posterous.com/crisp-html-5-canvas-text-on-mob...

Re:Peity - Little charts for little projects by hcarvalhoalves on Thursday June 21, 2012 @04:16PM (#4143977)
Simple hacks are the best hacks.
Re:Peity - Little charts for little projects by oakwhiz on Friday June 22, 2012 @11:21PM (#4149924)
This goes great with the HTML5 <meter> tag.
Re:Peity - Little charts for little projects by wildmXranat on Thursday June 21, 2012 @07:56PM (#4144742)
Not bad. Resembles sparkline.
Re:Peity - Little charts for little projects by FrancescoRizzi on Thursday June 21, 2012 @03:59PM (#4143923)
Cool Sparklines and more!
Re:Peity - Little charts for little projects by rorrr on Thursday June 21, 2012 @04:45PM (#4144096)
Since you only support IE9+, I don't see how any serious project would pick your charts. IE8 is still #3 most common browser version in the world. IE7 is #5.

http://gs.statcounter.com/#browser_version-ww-monthly-201105...

Re:Peity - Little charts for little projects by benpickles on Thursday June 21, 2012 @06:37PM (#4144517)
I tried adding a hook for ExplorerCanvas - http://excanvas.sourceforge.net/ - a while back but got inconsistent results - https://github.com/benpickles/peity/issues/7#issuecomment-27...
Re:Peity - Little charts for little projects by heyitsnick on Thursday June 21, 2012 @06:20PM (#4144471)
Just checked my analytics out of interest. Sample of 200k unique visitors to a non-tech related website, 6.7% IE8 or less. I would certainly consider using this tool even without knowing about the flash shim, especially for something that something is probably an eye-candy extra and not the central feature of a statistical page.
Re:Peity - Little charts for little projects by antimora on Thursday June 21, 2012 @06:16PM (#4144456)
There is a flash based implementation of the canvas that could be used in place of missing element. It only requires a simple drop in code.

http://flashcanvas.net/

Re:Peity - Little charts for little projects by benpickles on Thursday June 21, 2012 @06:38PM (#4144519)
Thanks, hadn't heard of that one.
Re:Peity - Little charts for little projects by postfuturist on Thursday June 21, 2012 @05:31PM (#4144307)
A significant fraction of our users are on IE 7 and 8. We use this for charts, they look great on IE: http://g.raphaeljs.com/
Re:Peity - Little charts for little projects by tosh on Thursday June 21, 2012 @05:13PM (#4144217)
we have sub 3% IE usage at https://www.blossom.io and most of them (56% use IE 9) so it depends on your target audience I guess :)
Re:Peity - Little charts for little projects by jaredonline on Thursday June 21, 2012 @05:47PM (#4144364)
Is the lorem ipsum on your homepage on purpose?
Re:Peity - Little charts for little projects by heretohelp on Thursday June 21, 2012 @05:14PM (#4144220)
You'd be surprised how many serious projects aren't all that interested in IE7 and 8 users.

Edit: I work for a funded startup. Let me give you some numbers:

3-5% IE users, a fraction of those using <9. Demographically, very few/if any of those are our customers.

Disproportionate effort for very little benefit to our users who care about our product.

Re:Peity - Little charts for little projects by alinajaf on Thursday June 21, 2012 @05:21PM (#4144256)
Woohoo, Hi Ben!
Re:Peity - Little charts for little projects by sakthivelila on Thursday June 21, 2012 @05:30PM (#4144298)
i need some hacking tool