Visualizing Developer Income by State with D3
The average salary for developers varies widely across the United States from $129K/year in DC to $63K/year in Hawaii according to salary data from Indeed. Using D3 to create a choropleth map, we can quickly see which states have the most lucrartive tech opportunites.
Live Implementation
You can view a live implementation of this visualization here. The source code is available here.
Creating the Visualization
If you are provided with the D3 javascript state map and indeed salary data, creating the visualization is simple.
First, create a tooltip to view the state’s average developer salary on hover using the following snipit:
Now use the code below to loop over the data in the provided csv to map it to the javascript state map.
Conclusion
D3 provides an extraordinarily easy and powerful set of tools for visualizing state level data.