Elie,

I would guess you are talking about the Range Marker feature of image
charts:
https://developers.google.com/chart/image/docs/chart_params#gcharts_range_markers

And I am guessing you want a similar feature for other non-image-charts.
There is no direct support for that now, but you should be able to hack
something together using a combo chart with stacked areas for the range you
want to highlight.  Set the lower area color to be transparent.

Regarding your question about specifying a single grid line, a new feature
in an upcoming release will let you specify all the gridlines, but then you
will have to specify all of them, not just one, so that may not work out
for you.    Setting the baseline value will expand the view window you
don't constrain it (with viewWindow.min and .max), but it won't move the
plot otherwise.

Hope that helps.

dan

On Wed, Feb 20, 2013 at 2:50 PM, Elie Kochman <[email protected]> wrote:

> I would like to include a range marker on my graphs, similar to what can
> be done using the existing Range Marker parameter. However, that parameter
> takes in a percentage of the graph to highlight - for example, from 25 to
> 60 % of the vertical axis. What I would like to do is set the axis values
> instead - so if my axis runs from 0 to 200, I would pass in the start and
> end values - 50 to 120.
>
> Now, I know that if I set the minimum and maximum on the axis, then I
> could calculate the percentage of the axis that needs to be highlighted.
> But it would be simpler if there was a way to just pass in these values so
> that I don't need to figure out what the limits on the axis should be.
>
> On a related note, is there a way to specify a single grid line to be
> plotted at a particular value (essentially, draw a line at y=17 or
> something like that)? This would act like a baseline for the graph, but not
> move the axis (as I may want to plot multiple such baselines on a single
> graph).
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization 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-visualization-api?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   562D 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 Visualization 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-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to