データのNumber化処理に三桁カンマ除去を追加

ccchart on csv2table.js

http://qiita.com/jet/items/a42908cef71ade2831d7#comment-cb53e5332a11e5382642 * ccchart | csv2table

上記では、csv2table.js によって http://ccchart.org/test/data2num/Book4chart3.csv から読み込まれた CSV データをテーブル表示し、同時に ccchart.js へ渡してチャート表示してます。このCSVの値が下記のような三桁カンマ付きで書かれているので、ccchart側でそれを除去してチャート描画しています。

月度,3,4,5,6,7,8,9,10,11,12,1,2
理科,"1,111,111","1,121,111","8,311,111","1,511,111","3,191,111","5,211,111","8,211,111","2,211,511","3,211,511","4,211,511","5,211,511","12,211,511"
社会,"11,111,111","11,113,111","11,115,111","11,171,121","13,111,151","1,221,111","3,211,161","6,211,161","8,211,161","9,211,161","10,211,161","12,211,161"