Forum Discussion
Map Charts with Counties
Thank You so much!! Life Saver. I just have one more question. I want to change the legend for the map chart. It is auto set for the faded shades as the numbers fall; however, I would like to seperate the data into seperate categories. For example, I want 0-60,000 to be one color, 60,001-120,000 to be another, and so on. Is there a way to do this?
You can't have distinct colors for a range of numbers, but you can define up to three colors in a gradient.
In the Format Data Series panel click on Series Color and select Diverging (3-color). You can change the colors and you can change the minimum, midpoint and maximum to exact numbers. Set Minimum to 0, midpoint to 60000 and maximum to 120000.
If you don't like the gradients, then you need to add a column to your data table and use formulas to translate 0 - 60,000 to 1, 60,001 - 120,000 to 2, 120,001 to whatever to 3, etc. Then use the column with the values 1, 2, 3 to plot the chart and set the colors for these numbers as described above.
In the following screenshot I have added a formula to the data table to generate numbers from 1 to 3 for the number ranges in column C, using
=IFS([@number]<33,1,[@number]<66,2,TRUE,3)
Then I changed the chart series definition to plot the numbers from column D instead of C and gave each of the three number a distinct color.
If you want more than three distinct colors, use the "lowest value", "middle value", and "highest value" instead of numbers and set your thresholds. With "x" distinct number of values in column D, there will be "x" distinct colors in the map, but they will be a mix of the "start" and the "end" color. You won't be able to define "x" exact hues.
- williambryantFDOTMay 16, 2024Copper ContributorSetting your tables up the way you suggest worked for years, but not anymore it has quit and will not recognize some counties even though you have a separate column for state and county.
- Kevin HankinsNov 05, 2018Copper Contributor
Virginia is composed of 133 Cities and Counties.
How do I plot Richmond City in Excel? 2016 3D Maps? 2019 Map Charts?
It seems to only know about Richmond County, which is entirely different than Richmond City.