You want to auto map using numbers or you already have the map and want to display the statistics on it ?

If it's the first: I have no ideas but if it's the latter I used a software a couple of years ago. There is a free version but I'm not sure how it can be used on custom worlds : MapInfo MapBasic, Desktop GIS - MapInfo.com