搜了一天,只有知乎有一篇雷达图的教程,挺好的.....
在另外的网站也看了一点,自己做了一下,抛砖引玉
网站链接:
http://svenhofstede.com/notes/radar-chart-tableau
https://www.tableau.com/about/blog/2015/7/use-radar-charts-compare-dimensions-over-several-metrics-41592
先认识这个坐标图##
开始画图了
第一步,确定要画8部分的坐标
第二步,计算坐标值
X轴:
CASE [Class]
WHEN "Math" THEN [Value] * -1
WHEN "English" THEN [Value] *(-sqrt(2)/2)
WHEN "Physics" THEN 0
WHEN "Economics" THEN [Value] * (sqrt(2)/2)
WHEN "Biology" THEN [Value]
WHEN "Geography" THEN [Value] * (sqrt(2)/2)
WHEN "Computer Science" THEN 0
WHEN "Sports" THEN [Value] *(-sqrt(2)/2)
END
Y轴:
CASE [Class]
WHEN "Math" THEN 0
WHEN "English" THEN [Value] * (sqrt(2)/2)
WHEN "Physics" THEN [Value]
WHEN "Economics" THEN [Value] * (sqrt(2)/2)
WHEN "Biology" THEN 0
WHEN "Geography" THEN [Value] * (-sqrt(2)/2)
WHEN "Computer Science" THEN [Value] * -1
WHEN "Sports" THEN [Value] * (-sqrt(2)/2)
END
第三步,放入X轴,Y轴数据
双轴操作,以及同步轴操作
第一组x轴:多边形
1)class作为路径
2)在class中【排序】,用order排序
第二组x轴:圆形
第四步,背景大法
第五步,雷达图大法大成
数据说明:
Student - 列指标
Order - 每个指标的索引
Class - 测量指标
Value - 测量值
Student order Class Value
Tess Roscoe 1 Math 53
Tess Roscoe 2 English 55
Tess Roscoe 3 Physics 74
Tess Roscoe 4 Economics 83
Tess Roscoe 5 Biology 30
Tess Roscoe 6 Geography 81
Tess Roscoe 7 Computer Science 44
Tess Roscoe 8 Sports 42
Sherrie Maitland 1 Math 66
Sherrie Maitland 2 English 61
Sherrie Maitland 3 Physics 83
Sherrie Maitland 4 Economics 39
Sherrie Maitland 5 Biology 61
Sherrie Maitland 6 Geography 60
Sherrie Maitland 7 Computer Science 68
Sherrie Maitland 8 Sports 70