# Display statistical data on a region map

**URL:** <https://www.ruby-forum.com/t/display-statistical-data-on-a-region-map/139602>\
**Category:** Rails\
**Created:** [June 5, 2008, 11:11am UTC](https://www.ruby-forum.com/t/display-statistical-data-on-a-region-map/139602 "2008-06-05T11:11:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sneha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@sneha](https://www.ruby-forum.com/u/sneha)\
**Post date:** [June 5, 2008, 11:11am UTC](https://www.ruby-forum.com/t/display-statistical-data-on-a-region-map/139602/1 "2008-06-05T11:11:46Z")

</div>

Hi all,

My rails 2.0.2 application needs to display the sales of my client  
regionwise.  
ex: Display colours in various states of a country scale wise.  
I’ve already wasted 2 days behind this but still not got anything to  
start with.  
Can any one help please…

---

<div class="post-metadata">

**Author:** ![sneha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@sneha](https://www.ruby-forum.com/u/sneha)\
**Post date:** [June 5, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/display-statistical-data-on-a-region-map/139602/2 "2008-06-05T16:05:03Z")

</div>

> My rails 2.0.2 application needs to display the sales of my client  
> regionwise.  
> ex: Display colours in various states of a country scale wise.

If it’s the US, you can use gchart ([http://gchart.rubyforge.org/](http://gchart.rubyforge.org/)  
gchart/)

g = GChart.map(:area =\> ‘usa’, :data =\> {‘NY’=\>1,‘VA’=\>3,‘CA’=\>2})  
g.to\_url
