Just in case anyone else finds this and is trying to do the same thing, I 
managed to achieve this (with the help of a kind chap over at SO) by 
applying a *MutationObserver *to the chart container and modifying the fill 
color of the rect as it's created.

http://codepen.io/awenborn/pen/jAjxjg
http://stackoverflow.com/questions/38741949/google-visualization-charts-api-changing-highlight-color-of-explorer-function

It's quite a crude solution and there's probably a better method out there 
in terms of performance and compatibility, but it works for my needs.

<https://lh3.googleusercontent.com/-3BKNSIB0GIM/V79aDardXAI/AAAAAAAAFmc/E_HkCK7m3FAOwHET7f3r0DZMd_7GxlN5ACLcB/s1600/jbjkbjbjb.png>


It'd still be nice if a future release of Google Charts could include an 
*explorer.color* parameter to achieve this and eliminate the overhead that 
my primitive hack requires!

Adam


On Monday, 8 August 2016 15:30:37 UTC+1, Adam Wenborn wrote:
>
> Hi,
>
> I have a quick question about the *Explorer* option that is available for 
> charts with a continuous axis. This feature is working great for my needs, 
> but I'd really like the option to customize the color of the highlighting 
> box that is created when users drag-to-select a region. At the moment the 
> default fill is a semi-transparent blue color (see image below) but after a 
> fair bit of effort I still can't figure out a way to reliably customize 
> this to make the charts fit more naturally with the color scheme of my site.
>
>
> <https://lh3.googleusercontent.com/-etaAlRi_WcA/V6iTgqhfw8I/AAAAAAAAFhk/hhPLG7MdFNQK185aVz_-yubzTKzzswkVgCLcB/s1600/csdfsdcs.png>
>
> I appreciate that the *Explorer *feature is marked as "experimental" but 
> I was wondering if there are there any reliable workarounds to achieve this 
> on the current Google Charts build? Alternatively, do you guys have any 
> plans to implement an option to customize this property in future builds 
> (e.g. an *explorer.color* setting that accepts an rgba value)?
>
> Many thanks and keep up the great work, Adam
>

-- 
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/95c10ab7-3797-48c3-b730-7c25ea4f02ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to