Hi Bram,

We don't have a way of highlighting the background, but you can get the
same effect by drawing an "area" series with nulls everywhere except for
the interval you want to highlight.

With a 'date' or 'datetime' type axis, it is possible to draw the tick
labels between the gridlines, at least in some situations.  See this
example:  https://jsfiddle.net/dlaliberte/ksnd7abx/1/
Dates and times are drawn in different ways depending on the scale.
Unfortunately, the context of the current year is not always displayed, but
you can add something to your axis title instead.

See more about formatting ticks for dates and times here:
https://developers.google.com/chart/interactive/docs/datesandtimes#formatting-axis-gridline-and-tick-labels



On Fri, May 27, 2016 at 10:04 AM, Bram Patelski <[email protected]>
wrote:

> Hi,
>
> Anyone know how to highlight a part of the chart's background as a
> vertical column?
>
> I'm building a PoC for a scatter-chart where I need to plot crosshairs on
> a timeline.
> It displays a timespan of about a year ranging 12 months, with somewhere
> around 2/3 of the chart, we display the current month.
> May also need to figure out a way to display intervals on the x-axis
> instead of dates, with the month's name in the middle.
> Is there a way to highlight the current month or any month? It's perfectly
> fine to give some x-axis coordinates that should be highlighted.
>
> Kind regards,
> Bram
>
> --
> 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
> https://groups.google.com/group/google-visualization-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/d7bee590-a9fd-41a5-b522-2bd37d7703f5%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/d7bee590-a9fd-41a5-b522-2bd37d7703f5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]>   5CC, Cambridge 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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJP1gd1DycvTgmu-pkuspKX9vi1_AqmDZOc3g9W9OEwomg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to