Jerry,
Discrete axes disable drawing gridlines at all. But it is possible to get
something that looks like a gridline for specific domain values using
annotations. You should add a column to your datatable after your first
column and give it { role: 'annotation' }, and for each row where you want
a vertical line, add a space for the annotation. Then in your options,
specify the 'domain' annotation style should be 'line', and you'll see a
vertical line for each annotation.
Here is an example that does all that:
http://jsfiddle.net/dlaliberte/Lmvv32nt/
There is a bug in the current release (that will be fixed in the next
release) in which a blank annotation results in 'undefined' being
displayed. I turned off the display of the text by setting is color to
'none'.
On Thu, Jun 18, 2015 at 5:06 PM, <[email protected]>
wrote:
> For a column chart with discrete horizontal values, is is possible to draw
> vertical gridlines on only specific horizontal axis values (not a fixed
> number of evenly spaced gridlines)? The purpose is to differentiate between
> certain values.
>
> --
> 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.
> 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 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.
For more options, visit https://groups.google.com/d/optout.