For our first map, we will be plotting the online revenue Harry makes from different states in the US. The following table lists the data for the 10 states Harry sells to online, for which we will be plotting:
State |
Revenue |
---|---|
Alabama |
78000 |
California |
148000 |
Florida |
95100 |
Hawaii |
77000 |
Illinois |
21000 |
Louisiana |
128000 |
Massachusetts |
50000 |
Nevada |
93000 |
New York |
128000 |
Texas |
38000 |
We will be using different color codes to mark out the performance as good, average, and bad. The ranges that Harry has decided are in the following table:
Range |
Name |
Color |
---|---|---|
0-20000 |
Poor |
FF9377 (Red) |
20000-30000 |
Average |
FFFFCC (Yellow) |
30000-100000 |
Good |
A7E9BC (Green) |
Technically, there are three steps to creating a map:
Finding the appropriate map for the region in the
Maps
folderCreating the XML data for the map
Writing the HTML and JavaScript code to embed the map in the page