KiwiBruce

Coloring Counties On State Maps

Recommended Posts

So I am wanting to Show the Map of US By State Like this

 

MapUSA.jpg

 

Then have the user be able to click On say Georgia and then see the Data mapped out by County (as in Each county shaded depending on data )

 

But what I can't see in the samples is how to color the Counties. I really want to see an example before I by the Maps add-in

 

Like this ... but colored!MapStateGeorgia.jpg

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

If you are willing to apply color to map entities you can use fillColor attribute. This attribute is affected on map when no color-range is applied.

 

And if you are willing to apply color-range, then you can use colorRange attribute.

 

The <colorRange> element within the <map> element helps to distinguish various entities based on their data. Essentially, the <colorRange> element is used to contain the various range definitions.

 

Ref. Code:

 

<colorRange>
       <color minValue="0" maxValue="500" displayValue="Sparsely Populated" color="008200" />
       <color minValue="500" maxValue="1000" displayValue="Well Populated" color="FFCC33" />
       <color minValue="1000" maxValue="5000" displayValue="Densely Populated" color="B80000" />
</colorRange>

 

 

For more information, please refer this URL: http://docs.fusioncharts.com/maps/Contents/?DataFormats/XML.html

Share this post


Link to post
Share on other sites

Hi,

 

If you are willing to apply color to map entities you can use fillColor attribute. This attribute is affected on map when no color-range is applied.

 

And if you are willing to apply color-range, then you can use colorRange attribute.

 

The <colorRange> element within the <map> element helps to distinguish various entities based on their data. Essentially, the <colorRange> element is used to contain the various range definitions.

 

Ref. Code:

 

<colorRange>
       <color minValue="0" maxValue="500" displayValue="Sparsely Populated" color="008200" />
       <color minValue="500" maxValue="1000" displayValue="Well Populated" color="FFCC33" />
       <color minValue="1000" maxValue="5000" displayValue="Densely Populated" color="B80000" />
</colorRange>

 

 

For more information, please refer this URL: http://docs.fusionch...ormats/XML.html

 

Thanks for the reply, And that covers one part but... Where to you define vales to the individual Counties?

w

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

For defining values to individual entities, you would have to specify value attribute inside the entity element.

 

Ref. Code:

<map ... >
<data>
	<entity id='001' value='58'  />
	<entity id='003' value='72' />
               .
	.
       </data>
</map>

 

You can get the Map Entity Id's for Georgia Map here: http://docs.fusioncharts.com/maps/Contents/?MapSS/Georgia.html

 

Hope this helps!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now