To finish this chapter, we will build an interactive high-tech-looking globe you can move around and show off to your friends. These types of visualizations are normally not very useful for analysis, but they are cool!
Our objective is to show a globe that will show geographical data coming from clients' messages as well as bars whose height represents the PROFIT associated to each sale and colors for PROTEIN_SOURCE. To accomplish this, we will use the threejs package.
As we did earlier, our graph_client_message_in_globe() function receives the client_messages and sales data and sets it up using the setup_globe_data() function. Then it will get world data using the get_world_map_data() function and append ...