我下面這個頁面紅寶石googlecharts問題
http://googlecharts.rubyforge.org/
下面的說明是我的代碼
Gchart.line(:data => data,:axis_with_labels => ["x"],:axis_labels => ["0","15","30","45","60"], :format => 'file', :filename => "/path/to/file/#{stamp}.png")
我期待有一個圖表,在x軸標籤,但我得到這個圖表
我失蹤的東西我在這裏?
UPDATE:
我固定的另一個額外的一雙[]這樣
Gchart.line(:data => data,:axis_with_labels => ["x"],:axis_labels => [["0","15","30","45","60"]], :format => 'file', :filename => "/path/to/file/#{stamp}.png")
謝謝。我安裝了'gem install gchart'並嘗試了我得到這個錯誤的代碼。 g.write()行中的「\ x89」從ASCII-8BIT到UTF-8。任何想法? – icn
您是否將任何參數傳遞給g.write?你能準確地把你在g.write中傳遞的東西放進去嗎? – sunnyrjuneja
檢查http://stackoverflow.com/questions/10177674/how-do-i-embed-an-uploaded-binary-files-ascii-8bit-in-an-xml-utf-8 – sunnyrjuneja