Hi Samuel,

What you want to use is the explicit 'ticks' option for the vertical axis
to specify the values where you want those horizontal gridlines to show
up.  If you also want the labels to be like in your example, 'y1', ...
'y5', then you'll want to specify each tick with its formatted value as
well, like so:

  vAxis: {
    ticks: [ { v: 10, f: 'y1' }, ..., { v: 50, f: 'y5' } ]
  }


On Mon, Dec 22, 2014 at 3:29 AM, Samuel Leanza <[email protected]>
wrote:

> Hi all,
>
> I'm stuck in a problem that I'm not able to solve thought I've spend more
> time to make research.
> I've built a google line chart providing data dinamically by query from my
> db. Data are converted in Json format and then are given to google script
> that show them in the graph:
>
>
> <https://lh4.googleusercontent.com/-uQO8MZWj41k/VJfV38DVYDI/AAAAAAAAAk8/nQOxfnolWHg/s1600/actual_graph.png>
>
> What I want to do now is to add some horizontal line (starting from
> y-axis) at fixed y values like this:
>
>
> <https://lh5.googleusercontent.com/-E2Nb4m3x_BI/VJfWDjWjYxI/AAAAAAAAAlE/H-SnVuqJmRY/s1600/what_I_want.png>
> Is it possible to do that somehow?
>
> Thank you for helping me.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Chart API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-chart-api.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-chart-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to