K
K
Kogene2017-08-30 18:12:57
Python
Kogene, 2017-08-30 18:12:57

Visualization. How to create a heat map?

Hello everybody!
Such a question: there is a table in the database with a rating of countries by the cost of air travel from Moscow, like:
Korea - 35000
USA - 27500
Kazakhstan - 12000
...
How can I build a heat map on the world map using this table?
Perhaps you need to get the coordinates of each country first? But how?
I am newbie. I have not come across something similar before, so I ask for advice or an example.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Bay, 2017-08-30
@Kogene

If for student purposes...
1) Take a canvas world map project (whatever you find), for example https://github.com/gardaud/worldmap-canvas .
2) Mapping the color to the cost parameter.
3) do country mapping
4) add color for a specific country.

S
stasel, 2017-09-07
@stasel

It was recently on Habré
https://habrahabr.ru/post/335638/
https://habrahabr.ru/post/324596/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question