Data visualization with SAS programming

Map Chart in SAS EG 7.1

Reply
Super Contributor
Posts: 396

Map Chart in SAS EG 7.1

I'm unable to display the data labels in map chart. I need someone to help completing the map chart with the data labels.

From the below chart I wish to display the state names and its figures in highlighted areas. (e.g. NY 100000) . It means highlighted area should determine NY state with its population 100000. I'm grateful if you can provide the solution from point and click interface like -Datasets-> Graph-> Map chart-> select the variables\,datasets and options->run

Map_Chart.png

Super Contributor
Posts: 396

Re: Map Chart in SAS EG 7.1

Any helpful answers?

Super Contributor
Posts: 396

Re: Map Chart in SAS EG 7.1

Any helpful answers?

Super Contributor
Posts: 396

Re: Map Chart in SAS EG 7.1

Still looking for answers.

Community Manager
Posts: 2,598

Re: Map Chart in SAS EG 7.1

You will be able to start this project with the Map Chart task, Chloropleth option -- using the map data set for the US and a response variable for your data to indicate the coloring.  This paper by Stephanie Thompson can get you started.

However, to annotate the map area with state names and their populations will require additional data preparation and coding.  I'm going to move this discussion to the community where more experts will see it.

Chris

Super Contributor
Posts: 396

Re: Map Chart in SAS EG 7.1

Any helpful answers?

SAS Employee
Posts: 963

Re: Map Chart in SAS EG 7.1

I don't think EG provides any easy way to do this.

You will need to write some custom code outside of EG (and then you could use EG to run that code, or run it independently of EG ... whichever is more convenient). It's a bit tricky, and you'll probably need an intermediate level of knowledge in SAS/Graph and "data step" to accomplish it.

There are several Tech Support gmap examples that show various ways to annotate labels on maps...

Support.sas.com

Post a Question
Discussion Stats
  • 6 replies
  • 533 views
  • 3 likes
  • 3 in conversation