2011-09-17 51 views
1

我想改變這一點:轉換我的谷歌圖表,谷歌路線圖

chxl=1:|04:00|05:30|2:|Time|3:|Calories| 
&chxr=0,28,362.59 
&chxt=y,x,x,y 
&chs=900x300 
&cht=bvg 
&chco=A2C180 
&chds=28,362.59 
&chbh=a 
&chd=t:359,56 

折線圖,像這樣:

chs=440x220 
&chxt=y,x,x,y 
&cht=lc 
&chco=3072F3 
&chd=t:931.4,23.5,572.4,0,0,0,0 
&chds=0,2500 
&chxr=0,0,2500|1,1,7,1 
&chxl=2:|Time|3:|Calories| 
&chdl=Energi 
&chdlp=b 
&chls=2 
&chma=5,5,5,25 
&chm=o,000000,0,-1,5 

我不知道在哪裏放置時間值,04 :00和05:30。

我想要做的是在X和卡路里上顯示Y小時,然後在每個小時中爲圖表創建一個「點」,例如04:00。

如何將當前圖表更改爲折線圖?

回答

3

我有點困惑,因爲線形圖示例中的數據與條形圖示例中的數據非常不同(這是故意的嗎?)。

你在找這樣的事嗎? (從Google Chart Tools: Image Charts

https://chart.googleapis.com/chart? 
chxl=1:|04:00|05:30|2:|Time|3:|Calories|& 
chxr=0,28,362.59& 
chxt=y,x,x,y& 
chs=900x300& 
cht=lc& 
chco=A2C180& 
chds=28,362.59& 
chd=t:359,56& 
chdl=Energi& 
chm=s,000000,0,-1,4 

參數項:

chxl - Custom Axis Labels 
chxr - Axis Range 
chxt - Visible Axes 
chs - Chart Size 
cht - Chart Type (bvg - vertical bar chart with grouped bars, lc - line chart) 
chco - Series color 
chds - Custom scaling 
chbh - Bar Width and Spacing (not needed for line chart) 
chd - Chart data 
chdl - Series display legend. 
chm - Chart marker