Sorry I wrote bad the link of the first chart. Here it goes OK: Chart with min in -59 is displayed in wrong way http://chart.apis.google.com/chart?cht=bvs&chs=250x250&chd=t:10,0|4.48,0|15,-58.42|0,4.73|0,73.44&chco=4D89D9,C6D9FD,FF0000,00FF00,0000FF&chds=-59,80&chf=bg,s,edf5ff|c,s,f6e426&chtt=my_title&chdl=A|B|C|D|E&chdlp=r&chxt=x,y&chxl=0:|Col_1|Col_2&chxr=1,-59,80&chbh=r,1,0&chg=0,12.5
Chart with min in -60 is displayed in correct way (changing only this) http://chart.apis.google.com/chart?cht=bvs&chs=250x250&chd=t:10,0|4.48,0|15,-58.42|0,4.73|0,73.44&chco=4D89D9,C6D9FD,FF0000,00FF00,0000FF&chds=-60,80&chf=bg,s,edf5ff|c,s,f6e426&chtt=my_title&chdl=A|B|C|D|E&chdlp=r&chxt=x,y&chxl=0:|Col_1|Col_2&chxr=1,-60,80&chbh=r,1,0&chg=0,12.5 Is this a bug or I'm doing something wrong? Thanks. On 11 feb, 12:11, JJ <[email protected]> wrote: > Hello, > > I've been having problems wih max and min values set in chds and chxr > parameters. I've realized that the Chart generated s not allways the > same I fix. > > Here are an example: > > In this case with the min and max values of the range are (-59,80) but > the chart is not correct cause the zero line is not in zero. > > http://chart.apis.google.com/chart? > cht=bvs& //chart type > chs=250x250& //chart size > chd=t:10,0|4.48,0|15,-58.42|0,4.73|0,73.44& //chart data > chco=4D89D9,C6D9FD,FF0000,00FF00,0000FF& //chart colors > chds=-59,80& //data scaling > chf=bg,s,edf5ff|c,s,f6e426& //chart fill color > chtt=my_title& //chart title > chdl=A|B|C|D|E& //chart legend > chdlp=r& //legend position > chxt=x,y& //chart axis > chxl=0:|Col_1|Col_2& //Axis labels > chxr=1,-59,80& //Axis range > chbh=r,1,0& //Bar thickness and > spacing > chg=0,12.5 //Grid Lines > > The chart looks like this (now it's not > correct):http://chart.apis.google.com/chart?cht=bvs&chs=250x250&chd=t:10,0|4.48,0|15,-58.42|0,4.73|0,73.44&chco=4D89D9,C6D9FD,FF0000,00FF00,0000FF&chds=-60,80&chf=bg,s,edf5ff|c,s,f6e426&chtt=my_title&chdl=A|B|C|D|E&chdlp=r&chxt=x,y&chxl=0:|Col_1|Col_2&chxr=1,-60,80&chbh=r,1,0&chg=0,12.5 > > Now I change the limits to (-60,80) and it's ok. > > http://chart.apis.google.com/chart? > cht=bvs& //chart type > chs=250x250& //chart size > chd=t:10,0|4.48,0|15,-58.42|0,4.73|0,73.44& //chart data > chco=4D89D9,C6D9FD,FF0000,00FF00,0000FF& //chart colors > chds=-60,80& //data scaling (CHANGE > IN THIS LINE) > chf=bg,s,edf5ff|c,s,f6e426& //chart fill color > chtt=my_title& //chart title > chdl=A|B|C|D|E& //chart legend > chdlp=r& //legend position > chxt=x,y& //chart axis > chxl=0:|Col_1|Col_2& //Axis labels > chxr=1,-60,80& //Axis range (CHANGE > IN THIS LINE) > chbh=r,1,0& //Bar thickness and > spacing > chg=0,12.5 //Grid Lines > > the chart looks like this (now is > correct):http://chart.apis.google.com/chart?cht=bvs&chs=250x250&chd=t:10,0|4.48,0|15,-58.42|0,4.73|0,73.44&chco=4D89D9,C6D9FD,FF0000,00FF00,0000FF&chds=-60,80&chf=bg,s,edf5ff|c,s,f6e426&chtt=my_title&chdl=A|B|C|D|E&chdlp=r&chxt=x,y&chxl=0:|Col_1|Col_2&chxr=1,-60,80&chbh=r,1,0&chg=0,12.5 > > Is there any way to know what values are correct for setting max and > min values? > > Thanks. -- You received this message because you are subscribed to the Google Groups "Google Chart API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-chart-api?hl=en.
