Dmitry Baranovskiy’s Blog α




Web Jam

13 December 2006

Yesterday at the Web Jam meeting I was really honoured to present on the same stage with many other amazing speakers and their projects. I however, presented my small JavaScript pie-chart. After my presentation some people asked me How did you do it?” In short, I used an interesting effect (initially discovered by Tantek Çelik) called border intersection. Basically if your borders are big enough and are different colours they will intersect along the diagonal line, the angle will depend on the proportion between the border’s widths. So for every sector of the pie chart JavaScript creates one to five divs (usually one, but it depends) and adds a border. I placed a big black PNG with a circular hole over these divs just to give the illusion of a round object and of course added some funky reflections. On the demo you can enter coma-separated numbers or… words. If you enter words the script will populate the chart with numbers of photos, that relate to these words from flickr, and each section of the pie chart will be tagged with the words used.

Thanks for everyone who supported me during Web Jam by either voting or with your kind words.

, ,

13 Dec 06 3:14pm

Scott G

very cool presentation! Can’t wait to see what you come up with next.
13 Dec 06 5:01pm

Lachlan Hardy

Dmitry, your piechart is amazing. I was impressed the first time I saw it, but last night when I saw the Flickr functionality you added, I was simply blown away
People can have entire Flickr Fights on here! http://dmitry.baranovskiy.com/work/fiechart/?ericmeyer,dougbowman

Can you hook it up to re-write the URL with the inputs?

Well done. It’s fantastic
14 Dec 06 10:29am

Ben Buchanan

Very cool! Just thinking of following progressive enhancement… if you could pull the values from a list (DL could be used to get label and value pairs) and then replace that list with the super funky js version, it’d be cool and still degrade gracefully. Tick all the boxes!

Love the flickr thing. Throw in we04, we05 and wd06…
14 Dec 06 10:38am

Dmitry Baranovskiy

Thanks guys! I’m really pleased by all good words you told me.
Yes Ben, it could be used to enhance any list of data with very simple addition. But honestly, I made it just for fun. Was really surprised of people’s interest. ☺
14 Dec 06 4:34pm

angusf

Best of the night. Easy to grasp and explain in 3 minutes. Flickr connection makes it especially fun.
18 Dec 06 4:19pm

Anson

This was sweet. But so was Inkoid, Angus. Gimme a beta login! ☺
28 Jan 07 10:34am

R Walker

I see that the date for WebJam2 has been set – what can you wow us with this time?
How about a decent hCard creator?
01 Mar 07 2:40pm

Gary Barber

of course now you have to upstage yourself at WebJam2… good luck.