Line X-Y Chart: Chart not displaying properly

180 views
Skip to first unread message

Santosh Bhojraj

unread,
Dec 15, 2009, 6:31:07 PM12/15/09
to google-c...@googlegroups.com
I am trying to create a Line-XY chart using Google Chart API.
below is the link to it. The curve is not being drawn fully - the last 2/3 data points are not being plotted.

http://chart.apis.google.com/chart?cht=lxy&chs=420x200&chxt=x,y&chd=t:10,20,30,40,50,75,80,90,95,98,99.5,99.9|1.53,2.15,2.74,3.37,4.09,6.86,7.79,10.9,14.36,19.67,24.29,29.23,43.05

Any help would be greatly appreciated.

KeithB

unread,
Dec 16, 2009, 10:14:41 AM12/16/09
to Google Chart API
You're specifying 12 x-axis coordinates and 13 y-axis coordinates.

Cheers,
Keith

Santosh Bhojraj

unread,
Dec 19, 2009, 7:11:41 PM12/19/09
to google-c...@googlegroups.com, kborn...@gmail.com
thanx . thar worked to some extent.

The char will render correctly if axis ranges are not specified. please see url below

http://chart.apis.google.com/chart?cht=lxy&chs=420x200&chtt=Severity+Curve&chxt=x,y&chm=o,FF9900,0,-1,7.0&chd=t:10.0,20.0,30.0,40.0,50.0,75.0,80.0,90.0,95.0,98.0,99.0,99.5,99.9|0.37,0.6,0.86,1.16,1.54,3.29,3.97,6.48,9.71,15.39,20.94,27.47,48.4

With Axis ranges, the graph doesn't extend to the last y-axis coordinate.

http://chart.apis.google.com/chart?cht=lxy&chs=420x200&chtt=Severity+Curve&chxt=x,y&chm=o,FF9900,0,-1,7.0&chd=t:10.0,20.0,30.0,40.0,50.0,75.0,80.0,90.0,95.0,98.0,99.0,99.5,99.9|0.37,0.6,0.86,1.16,1.54,3.29,3.97,6.48,9.71,15.39,20.94,27.47,48.4&chxr=1,1.0,49.0,6


Any help on this is very much appreciated.


Thanx !!


Cheers,
Keith

--

You received this message because you are subscribed to the Google Groups "Google Chart API" group.
To post to this group, send email to google-c...@googlegroups.com.
To unsubscribe from this group, send email to google-chart-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-chart-api?hl=en.



KeithB

unread,
Dec 28, 2009, 10:07:19 AM12/28/09
to Google Chart API
Hi,

Now it's just a matter of scaling your data. Charts using text-encoded
data range expect data values between 0 and 100. Your CHXR parameter
changes the Y-Axis labels, but does nothing with the underlying data.
Add "chds=0,100,0,49" to tell the API that your first dataset (x
values) ranges from 0 to 100 and your second data set (y values)
ranges from 0 to 49.

Cheers,
Keith

Reply all
Reply to author
Forward
0 new messages