3 messages in com.googlegroups.google-chart-apiRe: Data plotting issue
FromSent OnAttachments
Alohtia27 Mar 2008 11:45 
Uwe Maurer30 Mar 2008 05:41 
Alohtia31 Mar 2008 08:29 
Subject:Re: Data plotting issue
From:Uwe Maurer (uwe.@google.com)
Date:03/30/2008 05:41:43 AM
List:com.googlegroups.google-chart-api

Hi,

On Mar 27, 8:45 pm, Alohtia <aloh@therealtimegroup.com> wrote:

Is there a way to align the way the data points are mapped on the graph to make it match the alignment of points on the y-axis?

Yes, you can use the new chds parameter to scale the data. http://code.google.com/apis/chart/#data_scaling

I have 12 points on the y-axis "0,10,20,30,40,50,60,70,80,90,100,110". And my data contains the following points "10,20,25,35,50". Data point "10" doesnt align with point "10" on the y-axis and neither do the others. Can someone please help with this problem?

Please see this example:

http://chart.apis.google.com/chart?cht=lc&chs=400x300&chd=t:10,20,25,35,50&chds=0,110&chxt=x,y&chxr=1,0,110&chm=o,ff0000,0,-1,5&chg=10,9.09

The chds parameter specifies that the data in the text encoding is from 0 to 110.

Thanks, Uwe