[mapserver-dev] PIE CHART DYNAMICALLY

Stephen Woodbridge woodbri at swoodbridge.com
Thu Mar 25 14:29:58 EDT 2010


puneetsingh wrote:
> please help me with Mapserver and C# ...
> 
> My requirments are:
> 
> I want to select a portion of a map by mouse click after which it displays a
> pie chart which gives some details of the region clicked and the data is
> being fetched from database...
> 
> So when ever i click a map according to division based on sectors i get a
> pie chart dynamically created.
> 
> 
> Please help me with the same.......
> 
> Codes needed in
> 
> Mapserver and C#

You probably need to have an overall strategy and workflow for this.
Clicking a mouse happens in the client browser. Mapscript runs on the 
server. So you probably need something like:

1) event handler to get onClick over the map
2) have the handler convert the the click to lat/long and issue an ajax 
request or a post/get back to the server with the click info in it.
3) have the server code get the click info and send the results back to 
the client.

So there are too many variables to be specific. Are you doing a Web 2.0 
application with ajax servlets and using something like OpenLayers. Or 
are you just doing posts and redisplaying the screen or something in 
between.

I would break down you problem into smaller more manageable pieces that 
you can develop and test. Your current description is pretty high level.

-Steve W.


More information about the mapserver-dev mailing list