|
@@ -173,6 +173,7 @@ const funSubmit = async () => {
|
|
show: true
|
|
show: true
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ isRadar: false,
|
|
series: chart.roses?.length ?chart.roses.map((o, index) => {
|
|
series: chart.roses?.length ?chart.roses.map((o, index) => {
|
|
return {
|
|
return {
|
|
type: 'bar',
|
|
type: 'bar',
|
|
@@ -191,22 +192,19 @@ const funSubmit = async () => {
|
|
id: chartId,
|
|
id: chartId,
|
|
title: '',
|
|
title: '',
|
|
subtext: '风速风向频次玫瑰图',
|
|
subtext: '风速风向频次玫瑰图',
|
|
|
|
+ isRadar: true,
|
|
xAxis: {
|
|
xAxis: {
|
|
type: 'category',
|
|
type: 'category',
|
|
boundaryGap: false,
|
|
boundaryGap: false,
|
|
- data: ['N','','','', 'N-E','','','', 'E','','','', 'S-E','','','', 'S','','','', 'S-W','','','', 'W','','','', 'W-N','','',''],
|
|
|
|
|
|
+ data: ['N','', 'N-E','', 'E','', 'S-E','', 'S','', 'S-W','', 'W','', 'W-N',''],
|
|
splitLine: {
|
|
splitLine: {
|
|
show: true
|
|
show: true
|
|
}
|
|
}
|
|
},
|
|
},
|
|
series: chart.count?.length? [...chart.count.map((o,index) => {
|
|
series: chart.count?.length? [...chart.count.map((o,index) => {
|
|
- const dataArr = new Array(32).fill(0)
|
|
|
|
- for(let i=0;i<o.length;i++){
|
|
|
|
- dataArr[i*2] = o[i]
|
|
|
|
- }
|
|
|
|
return {
|
|
return {
|
|
type: 'bar',
|
|
type: 'bar',
|
|
- data: dataArr,
|
|
|
|
|
|
+ data: o,
|
|
coordinateSystem: 'polar',
|
|
coordinateSystem: 'polar',
|
|
name: funText(index),
|
|
name: funText(index),
|
|
stack: 'a',
|
|
stack: 'a',
|
|
@@ -215,14 +213,17 @@ const funSubmit = async () => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}), {
|
|
}), {
|
|
- type: 'line',
|
|
|
|
- coordinateSystem: 'polar',
|
|
|
|
|
|
+ type: 'radar',
|
|
|
|
+ // coordinateSystem: 'polar',
|
|
tooltip: {
|
|
tooltip: {
|
|
- trigger: 'item'
|
|
|
|
|
|
+ trigger: 'item',
|
|
},
|
|
},
|
|
|
|
+ // smooth: true,
|
|
// areaStyle: {},
|
|
// areaStyle: {},
|
|
name: '对风',
|
|
name: '对风',
|
|
- data: chart.radar
|
|
|
|
|
|
+ data: [{
|
|
|
|
+ value: chart.radar,
|
|
|
|
+ }],
|
|
}]: []
|
|
}]: []
|
|
})
|
|
})
|
|
chartId++
|
|
chartId++
|
|
@@ -356,7 +357,7 @@ const funChartSelect = async (batch) => {
|
|
const scatterxData = ref([
|
|
const scatterxData = ref([
|
|
{
|
|
{
|
|
type: 'category',
|
|
type: 'category',
|
|
- data: new Array(31).fill(-15).map((o,index) => Number((o + index))),
|
|
|
|
|
|
+ data: new Array(61).fill(-30).map((o,index) => Number((o + index))),
|
|
boundaryGap: false,
|
|
boundaryGap: false,
|
|
splitLine: {
|
|
splitLine: {
|
|
show: true
|
|
show: true
|
|
@@ -504,6 +505,7 @@ const funDiaSubmit = async () => {
|
|
show: true
|
|
show: true
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ isRadar: false,
|
|
series: chart.roses?.length ?chart.roses.map((o, index) => {
|
|
series: chart.roses?.length ?chart.roses.map((o, index) => {
|
|
return {
|
|
return {
|
|
type: 'bar',
|
|
type: 'bar',
|
|
@@ -529,19 +531,16 @@ const funDiaSubmit = async () => {
|
|
xAxis: {
|
|
xAxis: {
|
|
type: 'category',
|
|
type: 'category',
|
|
boundaryGap: false,
|
|
boundaryGap: false,
|
|
- data: ['N','','','', 'N-E','','','', 'E','','','', 'S-E','','','', 'S','','','', 'S-W','','','', 'W','','','', 'W-N','','',''],
|
|
|
|
|
|
+ data: ['N','', 'N-E','', 'E','', 'S-E','', 'S','', 'S-W','', 'W','', 'W-N',''],
|
|
splitLine: {
|
|
splitLine: {
|
|
show: true
|
|
show: true
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ isRadar: true,
|
|
series: chart.count?.length? [...chart.count.map((o,index) => {
|
|
series: chart.count?.length? [...chart.count.map((o,index) => {
|
|
- const dataArr = new Array(32).fill(0)
|
|
|
|
- for(let i=0;i<o.length;i++){
|
|
|
|
- dataArr[i*2] = o[i]
|
|
|
|
- }
|
|
|
|
return {
|
|
return {
|
|
type: 'bar',
|
|
type: 'bar',
|
|
- data: dataArr,
|
|
|
|
|
|
+ data: o,
|
|
coordinateSystem: 'polar',
|
|
coordinateSystem: 'polar',
|
|
name: funText(index),
|
|
name: funText(index),
|
|
stack: 'a',
|
|
stack: 'a',
|
|
@@ -550,14 +549,17 @@ const funDiaSubmit = async () => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}), {
|
|
}), {
|
|
- type: 'line',
|
|
|
|
- coordinateSystem: 'polar',
|
|
|
|
|
|
+ type: 'radar',
|
|
|
|
+ // coordinateSystem: 'polar',
|
|
tooltip: {
|
|
tooltip: {
|
|
trigger: 'item'
|
|
trigger: 'item'
|
|
},
|
|
},
|
|
|
|
+ // smooth: true,
|
|
// areaStyle: {},
|
|
// areaStyle: {},
|
|
name: '对风',
|
|
name: '对风',
|
|
- data: chart.radar
|
|
|
|
|
|
+ data: [{
|
|
|
|
+ value: chart.radar,
|
|
|
|
+ }],
|
|
}]: []
|
|
}]: []
|
|
})
|
|
})
|
|
chartId++
|
|
chartId++
|
|
@@ -576,6 +578,7 @@ const funDiaSubmit = async () => {
|
|
return [o.x+'', o.y]
|
|
return [o.x+'', o.y]
|
|
})
|
|
})
|
|
}],
|
|
}],
|
|
|
|
+ isRadar: false,
|
|
series: [{
|
|
series: [{
|
|
name: "对风频次",
|
|
name: "对风频次",
|
|
type: "line",
|
|
type: "line",
|
|
@@ -615,6 +618,7 @@ const funDiaSubmit = async () => {
|
|
subtext: '静态偏航对风分析图',
|
|
subtext: '静态偏航对风分析图',
|
|
xAxis: scatterxData.value,
|
|
xAxis: scatterxData.value,
|
|
yAxis: scatteryData.value,
|
|
yAxis: scatteryData.value,
|
|
|
|
+ isRadar: false,
|
|
series: [
|
|
series: [
|
|
{
|
|
{
|
|
name: '对风偏航',
|
|
name: '对风偏航',
|
|
@@ -714,7 +718,7 @@ onActivated(() => {
|
|
<div v-loading="exportLoading">
|
|
<div v-loading="exportLoading">
|
|
<div ref="diaPanelRef" class="flex flex-wrap justify-center items-center h-[650px] overflow-y-auto overflow-x-hidden">
|
|
<div ref="diaPanelRef" class="flex flex-wrap justify-center items-center h-[650px] overflow-y-auto overflow-x-hidden">
|
|
<component :is="item.actCop" :width="actCopList.length > 1 ? '50%' : '100%'" height="100%" v-for="item in actCopList"
|
|
<component :is="item.actCop" :width="actCopList.length > 1 ? '50%' : '100%'" height="100%" v-for="item in actCopList"
|
|
- :key="item.id" :xAxis="item.xAxis" :subtext="item.subtext" :title="item.title"
|
|
|
|
|
|
+ :key="item.id" :xAxis="item.xAxis" :subtext="item.subtext" :isRadar="item.isRadar" :title="item.title"
|
|
:series="item.series" :isDiaAlone="(actCopList.length === 1)" @dblclick="funDbClick(item)" :yAxis="item.yAxis" :dataset="item.dataset" :brush="item.isBrush" @getSelected="funChartSelect"></component>
|
|
:series="item.series" :isDiaAlone="(actCopList.length === 1)" @dblclick="funDbClick(item)" :yAxis="item.yAxis" :dataset="item.dataset" :brush="item.isBrush" @getSelected="funChartSelect"></component>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -740,7 +744,7 @@ onActivated(() => {
|
|
@click="funActCop(item, 'chartCop' + (index + 1))">
|
|
@click="funActCop(item, 'chartCop' + (index + 1))">
|
|
<ZoomIn />
|
|
<ZoomIn />
|
|
</el-icon>
|
|
</el-icon>
|
|
- <chart-cop class="" height="100%" width="100%" :xAxis="item.xAxis" :subtext="item.subtext"
|
|
|
|
|
|
+ <chart-cop class="" height="100%" width="100%" :xAxis="item.xAxis" :isRadar="item.isRadar" :subtext="item.subtext"
|
|
:title="item.title" :series="item.series">
|
|
:title="item.title" :series="item.series">
|
|
</chart-cop>
|
|
</chart-cop>
|
|
</div>
|
|
</div>
|