google / google-visualization-issues

288 stars 35 forks source link

Geomap - allow log(2) or other transformations before rendering color gradients #181

Open orwant opened 9 years ago

orwant commented 9 years ago
What would you like to see us add to this API?

The ability to 'smooth' the color gradients by applying a log(2) to the value before
rendering the 
color of a region. As an example, we have sales by country, but the sales are largely
correlated to 
the population of the country. So for the US we have sales > $100, for the UK they
are $12 but in 
smaller eastern european countries the sales are $1 or lower. We'd like to still see
that there are 
sales in those smaller countries, but the US number is so high it makes the other colors
very 
pale. If we apply log(2) to the number before passing it to the visualization then
the hover 
displays the log(2) number, not the actual sales.

A similar result could be achieved by allowing us to pass a number that defines the
color 
gradient, and a different number that displays on hover. This approach might prove
more 
flexible.

What component is this issue related to (PieChart, LineChart, DataTable,
Query, etc)?

Geomap

*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************

Original issue reported on code.google.com by notacrime on 2010-02-02 20:27:41

orwant commented 9 years ago
(No text was entered with this change)

Original issue reported on code.google.com by yinnon@google.com on 2011-02-15 16:56:06

orwant commented 9 years ago
I came across this need as well, and did a workaround as per this discussion:
https://groups.google.com/forum/?fromgroups#!topic/google-visualization-api/XhZXfWmEVWM

Definitely would love to see this added to the Geochart API.

Thanks.

Original issue reported on code.google.com by findchris on 2013-06-07 00:48:40

MartinPM commented 8 years ago

+1

scoroberts commented 8 years ago

+1