我在数据源上有两组纬度/经度坐标:
lat_orig long_orig lat_dest long_dest value
-12,2354 -55,2342 -5,3425 -32,3245 2
-11,2342 -44,9878 -14,3459 -54,2342 4
并希望在Tableau的同一地图上显示两个点,是否可能?
答案 0 :(得分:3)
Sure, but you need to pivot your data a bit:
LAT LON TYPE VALUE
-12 -55 ORIGIN 2
-112 -45 ORIGIN 4
-5 -32 DEST 2
-14 -54 DEST 4
and then if you want to draw lines between your places you need to add a path ID:
LAT LON TYPE VALUE PATH
-12.2354 -55.2342 ORIGIN 2 2-2
-5.3425 -32.3245 DEST 2 2-2
-112.342 -44.9878 ORIGIN 4 4-4
-14.3459 -54.2342 DEST 4 4-4
Here is a great tutorial: http://kb.tableau.com/articles/knowledgebase/using-path-shelf-pattern-analysis
UPDATE: To get labels you can do a dual axis and overlay the labels: