|
@@ -375,13 +375,15 @@ export function getHightPieChartOption($params, $total) {
|
|
|
return $option;
|
|
|
}
|
|
|
|
|
|
+// 雷达图
|
|
|
export function getRadarChartOption($params) {
|
|
|
|
|
|
let $option = {
|
|
|
- // tooltip: {},
|
|
|
- color: "white",
|
|
|
+ tooltip: {
|
|
|
+
|
|
|
+ },
|
|
|
+ color: "#ffb72d",
|
|
|
radar: {
|
|
|
- // shape: 'circle',
|
|
|
radius: "55%",
|
|
|
name: {
|
|
|
textStyle: {
|
|
@@ -419,13 +421,7 @@ export function getRadarChartOption($params) {
|
|
|
splitArea: {
|
|
|
show: true,
|
|
|
areaStyle: {
|
|
|
- // color: ['#d72941', '#f1c35b', '#99c736', '#75813b', '#4e3829',]
|
|
|
- color: ['rgba(11,89,140,1)',
|
|
|
- 'rgba(11,89,140,0.8)',
|
|
|
- 'rgba(11,89,140,0.6)',
|
|
|
- 'rgba(11,89,140,0.4)',
|
|
|
- 'rgba(11,89,140,0.2)'],
|
|
|
-
|
|
|
+ color: ['#423b97', '#5b55a6', '#7570b4', '#a6a3ce', '#dddcec'],
|
|
|
// 图表背景网格的颜色
|
|
|
}
|
|
|
},
|
|
@@ -434,10 +430,10 @@ export function getRadarChartOption($params) {
|
|
|
series: [{
|
|
|
name: "预算 vs 开销(Budget vs spending)",
|
|
|
type: "radar",
|
|
|
- // areaStyle: {normal: {}},
|
|
|
+
|
|
|
lineStyle: {
|
|
|
// color: "#D28885",
|
|
|
- color: "red",
|
|
|
+ color: "#ffda93",
|
|
|
},
|
|
|
data: [{
|
|
|
value: $params,
|