Is this what you want -- one set of bars and a line independent of
those bars?

http://chart.apis.google.com/chart?chs=700x300&cht=bvs&chm=D,FF0000,1,0,5,1&chd=t1:80.14,11.28,63.69,100.0,17.13|30,30,30,30,30&chxt=x,y&chxl=0:|16.Jan||18.Jan||20.Jan&chtt=Activity+a+day&chbh=a&chxr=1,0,180.0

I added a '1' after the 't' in chd. This specifies the number of
series with bars, and then the remaining series (the second series in
this case) are only used as invisible guides for markers (the line
from chm=D in this case).

For more information, see

http://code.google.com/apis/chart/formats.html#multiple_data_series --
chart data series option
http://code.google.com/apis/chart/styles.html#line_styles -- first
chart example in the chm=D box

If you just want the data scale in the chart to match the axis scale
chxr=1,0,180, you need to add chds=0,180.

On Dec 26, 9:56 am, Paul van Hoven <[email protected]>
wrote:
> I played a little with the Google chart api. I think it is really
> great. But now I got a problem. I created the following link
>
> hhttp://chart.apis.google.com/chart?chs=700x300&cht=bvs&chm=D,FF0000,1...30,30,30,30,30&chxt=x,y&chxl=0:|16.Jan||18.Jan||20.Jan&chtt=Activity+a+day&
>  chbh=a&chxr=1,0,180.0
>
> I want to have the red line constant 30 over the bars. So i specified
> axis index 1, but somehow the values 30,30,etc are not displayed.
> Instead some other data is printed. (I know to adjust the line to
> exactly 30 i also have to rescale the 30-values but for now i only
> want to have a constant line drawn)
>
> What am i doing wrong here?
>
> Greetings
> Tom
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to