|
@@ -1803,14 +1803,42 @@ export const chartSetMixin = {
|
|
|
setRadarChart() {
|
|
|
const {} = this.radarChartData;
|
|
|
|
|
|
+ /* 主题样式*/
|
|
|
+ const chartTheme = this.chartInfo.ChartThemeStyle ? JSON.parse(this.chartInfo.ChartThemeStyle) : null;
|
|
|
+
|
|
|
+ //x轴
|
|
|
let xAxis = {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ //y轴
|
|
|
let yAxis = {
|
|
|
-
|
|
|
+ gridLineInterpolation: 'polygon',
|
|
|
+ lineWidth: 0,
|
|
|
+ endOnTick: false,
|
|
|
+ startOnTick: false,
|
|
|
+ showLastLabel: true,
|
|
|
}
|
|
|
|
|
|
+ //系列
|
|
|
+ let series = [];
|
|
|
+
|
|
|
+ this.options = {
|
|
|
+ chart: {
|
|
|
+ ...defaultOpts.chart,
|
|
|
+ ...chartTheme.drawOption,
|
|
|
+ spacing: chartTheme.legendOptions.verticalAlign==='bottom' ? [23,10,2,10] : [2,10,2,10],
|
|
|
+ polar:true,
|
|
|
+ },
|
|
|
+ title: {
|
|
|
+ text:''
|
|
|
+ },
|
|
|
+ series,
|
|
|
+ yAxis,
|
|
|
+ xAxis
|
|
|
+ }
|
|
|
+ this.currentLang=='en' && this.changeOptions();
|
|
|
+
|
|
|
},
|
|
|
|
|
|
|
|
@@ -2339,7 +2367,8 @@ export const chartSetMixin = {
|
|
|
//source1 eta图库的类型对应
|
|
|
const typeMap = {
|
|
|
7: this.setBarChart,
|
|
|
- 10: this.setSectionScatterChart
|
|
|
+ 10: this.setSectionScatterChart,
|
|
|
+ 11: this.setRadarChart
|
|
|
}
|
|
|
//其他source
|
|
|
const sourceMap = {
|