Baxil [bakh-HEEL'], n. - New web toy
[Recent Entries][Archive][Friends][User Info]
My Sites
[Tomorrowlands]
[The TTU Wiki]
[Photos]
View My LJ
[By Tag]
03:46 pm
![[User Picture]](http://p-userpic.livejournal.com/70456868/240226) [Link] |
New web toy Now you, too, can make up charts like this one* on the fly and embed them in your posts -- even if you don't have a website to host them on:

http://code.google.com/apis/chart/ has the details.
Fun contest in comments! Make up the most awesome fake chart! Winner gets official Baxil Points, redeemable for fine Baxil merchandise at fine Baxils everywhere!
-- * Venn diagram idea shamelessly reused from a floating Internet meme. I just needed something to test the API out with.
Current Location: ~spiral Current Mood: amused Tags: contests, geekery, technology, wordplay
|
|
| |
![[User Picture]](http://p-userpic.livejournal.com/70456868/240226) | | From: | baxil |
| Date: | December 7th, 2007 10:40 am (UTC) |
|---|
| | | (Link) |
|
Alright - lemme offer a quick tutorial how it works ... :) We want to build a URL that will have all the data for the chart in it. Start by calling the program itself: http://chart.apis.google.com/chart?Define the size, more wide than tall so we have room for labels: chs=450x150Set the graph type to "pie chart": cht=pSet the colors to yellow and purple: chco=ffff00,dd00ddAdd the top label: chtt=Percentage+of+chart+which+resembles+Pac-Man... and the labels for the data (pie charts, sadly, can't use chdl, just the pie-specific ones): chl= Resembles+Pac-Man|Does+not+resemble+Pac-ManAnd, finally, provide the data - we're just going to use text encoding and make the numbers roughly proportional to the original: chd=t:80,20... then string them all together with &s: http://chart.apis.google.com/chart?chs=450x150&cht=p&chco=ffff00,dd00dd&chtt=Percentage+of+chart+which+resembles+Pac-Man&chl=Resembles+Pac-Man|Does+not+resemble+Pac-Man&chd=t:80,20Voila, here it is! Just embed it in the post inside of an <IMG SRC> tag: Edit: Fixed stray space in URL.Edited at 2007-12-07 10:41 am (UTC)
![[User Picture]](http://p-userpic.livejournal.com/8403565/240226) | | From: | baxil |
| Date: | December 7th, 2007 10:46 am (UTC) |
|---|
| | | (Link) |
|
Eeeee! Venn Diagrams!
Can the API make Chernoff faces?
![[User Picture]](http://p-userpic.livejournal.com/62874583/240226) | | From: | baxil |
| Date: | December 7th, 2007 10:51 am (UTC) |
|---|
| | | (Link) |
|
You could probably get pretty close if you used a scatter plot with shape markers.
Extra credit to the first person who APIs up something resembling a face.
![[User Picture]](http://p-userpic.livejournal.com/70456868/240226) | | From: | baxil |
| Date: | December 7th, 2007 10:52 am (UTC) |
|---|
| | | (Link) |
|
Hee! :D
Since the size of the communist governments isn't given, we can assume their size does not matter.
This means we can easily control the Earth's climate by forcing a number of small municipalities to be communist and adjusting that number until we reach the optimal temperature for the planet!
Brilliant! Nobel Awesomeness Prizes for all!
![[User Picture]](http://p-userpic.livejournal.com/20206547/539738) | | From: | taral |
| Date: | December 7th, 2007 03:48 am (UTC) |
|---|
| | | (Link) |
|
Interesting. I wonder how small a data:image/svg URL would be for that?
![[User Picture]](http://p-userpic.livejournal.com/70589010/4974393) | | From: | klitaka |
| Date: | December 7th, 2007 05:12 am (UTC) |
|---|
| | | (Link) |
|
![[User Picture]](http://p-userpic.livejournal.com/3864503/240226) | | From: | baxil |
| Date: | December 7th, 2007 10:52 am (UTC) |
|---|
| | | (Link) |
|
So, so true.
![[User Picture]](http://p-userpic.livejournal.com/71435087/4974393) | | From: | klitaka |
| Date: | December 7th, 2007 11:30 am (UTC) |
|---|
| | | (Link) |
|
It didn't seem as if it could do parabolic functions easily, so I "cheated" and input a mathamatically-increasing scale instead. Besides, it's been easy to memorise a standard X^2 function in part thanks to binary and having fingers (I count to 1023 on two hands using fingers as placeholders instead of representing quantities, under a derivation of a binary number system).
That ... wow.
Good timing. I've been struggling with that very thing recently, that the more I learn about current events, and the world, and so on, the less energy I have for dealing with it in any meaningful way. |
|