Geocharts is missing a logScale equivalent. Got a workaround?

155 views
Skip to first unread message

Chris Johnson

unread,
Jun 5, 2013, 9:43:13 PM6/5/13
to google-visua...@googlegroups.com
Hi there.

I am using a Geochart to show some impression data by country.  This data is in the range of [0, 296932090].  With only a few countries making up the majority of the distribution, there are only a few countries that show any color, while the rest show the datalessRegionColor.  As such, I thought using a log scale would be a good solution.

Is this functionality planned, or is there a workaround you can suggest?

Thanks!

asgallant

unread,
Jun 6, 2013, 11:57:31 AM6/6/13
to google-visua...@googlegroups.com
You can try manually log scaling your data; the legend values will not be accurate, so you should probably hide it, but it should work otherwise.  Here's an example: http://jsfiddle.net/asgallant/yMgSx/

Chris Johnson

unread,
Jun 6, 2013, 2:52:53 PM6/6/13
to google-visua...@googlegroups.com
This is what I ended up doing, although using the ChartWrapper was a helpful suggestion, so thank you.
Nonetheless, I feel that this is something that should be supported directly by the Geochart API.

So... feature request?


--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/XhZXfWmEVWM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
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.
 
 

asgallant

unread,
Jun 6, 2013, 5:36:44 PM6/6/13
to google-visua...@googlegroups.com
You can make a feature request here.


On Thursday, June 6, 2013 2:52:53 PM UTC-4, Chris Johnson wrote:
This is what I ended up doing, although using the ChartWrapper was a helpful suggestion, so thank you.
Nonetheless, I feel that this is something that should be supported directly by the Geochart API.

So... feature request?
On Thu, Jun 6, 2013 at 8:57 AM, asgallant <drew_g...@abtassoc.com> wrote:
You can try manually log scaling your data; the legend values will not be accurate, so you should probably hide it, but it should work otherwise.  Here's an example: http://jsfiddle.net/asgallant/yMgSx/


On Wednesday, June 5, 2013 9:43:13 PM UTC-4, Chris Johnson wrote:
Hi there.

I am using a Geochart to show some impression data by country.  This data is in the range of [0, 296932090].  With only a few countries making up the majority of the distribution, there are only a few countries that show any color, while the rest show the datalessRegionColor.  As such, I thought using a log scale would be a good solution.

Is this functionality planned, or is there a workaround you can suggest?

Thanks!

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/XhZXfWmEVWM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.

Chris Johnson

unread,
Jun 6, 2013, 8:49:33 PM6/6/13
to google-visua...@googlegroups.com

Siddhartha Gupta

unread,
Apr 21, 2015, 6:14:57 PM4/21/15
to google-visua...@googlegroups.com
Thanks for that fiddle. Came in very handy!
Reply all
Reply to author
Forward
0 new messages