はじめに アプリのデータの集計系画面ってもっと楽にできないかなーと思いますよね。 集計結果を画面に出したいにしてもその過程は 1.バッチで集計したものをDBに入れてそのままだす 2.半分集計したデータをDBに入れてサーバサイドでゴリゴリやって画面に出す 3.結構そのまま渡してsmartyなんかのテンプレートエンジンでゴリゴリやる 4.結構そのまま渡してjavascriptでゴリゴリやる とかとかいろいろあるかと思います。 今回は4のパターンで javascriptにお任せしてバッチもサーバサイドも手を抜いて簡単にやっちゃおう っていう導入事例をメモしておきます。 今回使うのはPivotTable.jsというjqueryプラグインです。 詳細はこちらもどーぞ →https://github.com/nicolaskruchten/pivottable 補足 こんなのも書いたので合わせてどうぞ