Google Chart APIを使って数式を埋め込む
**See Also**
* [Formula](http://formula.s21g.com/)
**See Also**
* [Formula](http://formula.s21g.com/)少し前になりますが、このブログでHatenaStarを使えるようにしました。
記事の右下の署名のところに表示されています。
このブログシステムでは、デフォルトの挙動だと、タイトルの右側に出てしまうので、以下のようなカスタムローダを使っています。
js>>
document.observe('dom:loaded', function(){
Hatena.Star.EntryLoader.loadEntries = function(){
return #{entries.to_json}.map(function(entry){
var star = $(['article_star_', entry[2]].join(''));
return {uri: entry[0], title: entry[1],
star_container: star, comment_container: star};
});
};
});
<<--
loadEntriesはElementオブジェクト含む配列のリストを返す
必要があるのですが、これはPrototype.jsの$()関数のように、
ElementでもElement IDの文字列でも両方
受け取れるようにしたら、もっと便利かも。
早速、RubyでGoogleの
SocialGraph API
を利用するためのライブラリが
リリースされたようです。
Ruby gem for Google SocialGraph released
We’ve cooked up a Ruby library to talk to the SocialGraph API, and get really interesting info out of it. This is the sort of thing that’s always more useful if more people have access to it, so even better, we’ve licensed it under the LGPL, so you can get all that Google goodness without having to do anything tedious to get it.
新しい技術を利用するライブラリがすぐに出てくるのは嬉しいですね。
巷では
Google Chart API
が注目を集めていますが、
その裏でひっそりとリリースされたもうひとつの
Chart APIがあるをご存知でしょうか。

この画像は、元同僚の安藤さんが開発した
Kao Chartというサービスが提供している
Kao Chart APIを使って生成しています。
サーバが弱いらしく、ちょっと重たいですが、
面白いですね。「ざわざわ」パラメータが秀逸。