Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Google chart map colors
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
seth7f  
View profile  
 More options Mar 31 2008, 2:04 am
From: seth7f <set...@gmail.com>
Date: Sun, 30 Mar 2008 23:04:25 -0700 (PDT)
Local: Mon, Mar 31 2008 2:04 am
Subject: Google chart map colors
I've been trying to write a function co convert the color represented
in simple encoding to hex (or rgb values).

This is so I can create a legend for the map.

Does anyone have any suggestions? I've tried a couple of concepts but
my results have not even been close.

Eg.

// chco=ffffff,edf0d4,13390a

Function simple2hex($gradient_start, $gradient_end, $simple_value)
{
Return $hex_color;

}

$hex_color = simple2hex('ffffff', 'edf0d4', 'A');

Thanks for any help.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeffrey Barke  
View profile  
 More options Apr 3 2008, 11:12 am
From: Jeffrey Barke <jeffrey.ba...@themechanism.com>
Date: Thu, 3 Apr 2008 11:12:53 -0400
Local: Thurs, Apr 3 2008 11:12 am
Subject: Re: Google chart map colors

Seth,

Check out my tmMapLegend PHP 4 class. It interpolates colors to assist  
in generating a legend for the Google Charts API map chart type. It  
currently accepts simple or text encoded values and two or three color  
ramps and it returns a hex color or an array of hex colors.
<http://themechanism.com/barkode/code/tmmaplegend/>

Jeffrey

On Mar 31, 2008, at 2:04 AM, seth7f wrote:

--
Cheers.
Jeffrey Barke
jeffrey.ba...@theMechanism.com
Lead Developer, US
theMechanism - New York City
440 9th Avenue, 8th Floor
New York, NY 10001-1631
t: +1 212.404.3150
c: +1 917.941.1232
f: +1 212.404.3228

http://www.theMechanism.com

Subscribe to theMechcast, our monthly Podcast:
http://feeds.feedburner.com/theMechcast

theMechanism - London
3rd Floor
405 The Strand
London E14 9FW
United Kingdom
t: +44 (0)20 7240 4964
f: +44 (0)20 7240 2262

--
The information contained in this Electronic mail message is attorney  
privileged and confidential information intended only for the use of  
the individual or entity named above. Such information also is  
intended to be privileged, confidential, and exempt from disclosure  
under applicable law. If the reader of this message is not the  
intended recipient or the employee or agent responsible to deliver it  
to the intended recipient, you are hereby notified that any  
dissemination, distribution, or copying of this communication is  
strictly prohibited. If you have received this communication in error,  
please notify us immediately by telephone.

Blah, blah, blah...
--


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »