|
@@ -114,9 +114,9 @@ export function chartRender({data,renderId,lang='zh',changeLangIsCheck,showChart
|
|
|
chartOpt=chartSetMap[data.ChartInfo.ChartType](data)
|
|
|
}else if([2,5].includes(data.ChartInfo.Source)){//商品价格曲线
|
|
|
chartOpt=initCommodityData(data);
|
|
|
- }else if([3,4].includes(data.ChartInfo.Source)){//相关性 滚动相关性
|
|
|
+ }else if([3].includes(data.ChartInfo.Source)){//相关性 滚动相关性
|
|
|
chartOpt=initRelevanceChart(data);
|
|
|
- }else if([6,7,8].includes(data.ChartInfo.Source)){//拟合方程 标准差 百分比
|
|
|
+ }else if([4,6,7,8].includes(data.ChartInfo.Source)){//滚动相关性 拟合方程 标准差 百分比
|
|
|
chartOpt=setSplineOpt(data);
|
|
|
}else if([9].includes(data.ChartInfo.Source)){//统计频率
|
|
|
chartOpt=setStatisticFrequency(data);
|
|
@@ -349,7 +349,7 @@ function setChartLang(changeLangIsCheck){
|
|
|
LangType.value == 'en'?_.NameEn:_.Name
|
|
|
});
|
|
|
}
|
|
|
- if([3,4].includes(Source)){
|
|
|
+ if([3].includes(Source)){
|
|
|
options.value.xAxis.title.text=LangType.value == 'en'?options.value.xAxis.title.textEn:options.value.xAxis.title.textZh
|
|
|
}
|
|
|
}
|
|
@@ -452,7 +452,7 @@ function setStatisticFrequency(e){
|
|
|
|
|
|
//曲线图
|
|
|
function setSplineOpt(e){
|
|
|
- const data=[6,7,8].includes(e.ChartInfo.Source)?[e.DataResp]:e.EdbInfoList
|
|
|
+ const data=[4,6,7,8].includes(e.ChartInfo.Source)?[e.DataResp]:e.EdbInfoList
|
|
|
let series=[]
|
|
|
let yAxis=[]
|
|
|
let xAxis = {}
|
|
@@ -1560,11 +1560,11 @@ function initRelevanceChart(data){
|
|
|
},
|
|
|
align: 'center',
|
|
|
},
|
|
|
- min: -1,
|
|
|
- max: 1,
|
|
|
+ // min: -1,
|
|
|
+ // max: 1,
|
|
|
opposite: false,
|
|
|
tickWidth: 1,
|
|
|
- tickInterval:0.2,
|
|
|
+ // tickInterval:0.2,
|
|
|
}
|
|
|
|
|
|
//处理series
|
|
@@ -1606,11 +1606,11 @@ function initRelevanceChart(data){
|
|
|
}
|
|
|
|
|
|
nextTick(()=>{
|
|
|
- if(data.ChartInfo.Source===3){
|
|
|
- const hEl=document.getElementById(RenderDomId.value)
|
|
|
- // console.log(hEl.offsetHeight);
|
|
|
- xAxis.offset=-(hEl.offsetHeight-98)/2
|
|
|
- }
|
|
|
+ // if(data.ChartInfo.Source===3){
|
|
|
+ // const hEl=document.getElementById(RenderDomId.value)
|
|
|
+ // // console.log(hEl.offsetHeight);
|
|
|
+ // xAxis.offset=-(hEl.offsetHeight-98)/2
|
|
|
+ // }
|
|
|
|
|
|
options.value = {
|
|
|
isRelevanceChart:data.ChartInfo.Source===3,
|