ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Geographic chart
Posted by Vijay on Feb-17-2011 22:11
Hi,

We have requirement to display sale data using US country map. Do we have any suggestions how to acheive this using ChartDirectory. Your responsive will be appreciated.

Cheers,
Vijay

  Re: Geographic chart
Posted by Peter Kwan on Feb-18-2011 09:54
Hi Vijay,

In the simplest case, you may just use a US map as a background image to an XYChart, and then use BaseChart.addText to add text labels to the map. You may also use flood fill to change the color of the states. There is an ASP.NET example in:

http://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1156472995#N1156727798

You may also use a MultiChart to contain the background image, then add pie charts or bar charts or other charts to states on the map.

Hope this can help.

Regards
Peter Kwan

  Re: Geographic chart
Posted by Vijay on Feb-19-2011 03:10
Hi Peter,

Your example really suited my requirement. Thanks for quick reply.
I want to know each state Coordinate information in the US map
You have provided for a single state in the example.
It will be great if you provide other state coordinate information or let me know steps to find the information.

Regards,
Vijay

  Re: Geographic chart
Posted by Peter Kwan on Feb-19-2011 08:23
Hi Vijay,

You may open the map image using Windows Paint. When you move the mouse on a state, you can read the coordinates of the mouse in the status bar.

Hope this can help.

Regards
Peter Kwan

  Re: Geographic chart
Posted by Vijay on Feb-22-2011 23:13
Hi Peter,

How can we provide tool tip on US contry map.

I am using below imagemap snippet. But, it's not working.

<map name='map1'><area shape='circle' coords='100,100,125' title='Percent:27 Units:15 Dollar:150'></map>

Can you provide me correct ways to do this.

Regards,
VJ

  Re: Geographic chart
Posted by Peter Kwan on Feb-23-2011 11:44
Hi Vijay,

For how to write HTML, you may consider to refer to HTML documentation. Anyway, I will provide an example:

<html><body>
<img src="usmap.png" usemap="#map1">
<map name='map1'><area shape='circle' coords='100,100,125' title='Percent:27 Units:15 Dollar:150'></map>
</body></html>

Hope this can help.

Regards
Peter Kwan