|
@@ -481,11 +481,11 @@ function setChartLang(changeLangIsCheck){
|
|
|
}
|
|
|
if([2,3,4].includes(Source)){
|
|
|
options.value.yAxis.forEach(item => {
|
|
|
- item.title.text = LangType.value == 'zh' ? item.title.textZh: item.title.textEn
|
|
|
+ item.title.text = LangType.value == 'zh' ? item.title.textZh: item.title.textEn||item.title.textZh
|
|
|
});
|
|
|
//图例
|
|
|
options.value.series.forEach(item => {
|
|
|
- item.name = LangType.value == 'en' ?item.nameEn : item.nameZh
|
|
|
+ item.name = LangType.value == 'en' ?(item.nameEn||item.nameZh) : item.nameZh
|
|
|
});
|
|
|
//tooltip
|
|
|
options.value.tooltip.formatter = LangType.value == 'en'?options.value.tooltip.formatterEn:options.value.tooltip.formatterZh
|
|
@@ -496,7 +496,7 @@ function setChartLang(changeLangIsCheck){
|
|
|
});
|
|
|
}
|
|
|
if([3].includes(Source)){
|
|
|
- options.value.xAxis.title.text=LangType.value == 'en'?options.value.xAxis.title.textEn:options.value.xAxis.title.textZh
|
|
|
+ options.value.xAxis.title.text=LangType.value == 'en'?(options.value.xAxis.title.textEn||options.value.xAxis.title.textZh):options.value.xAxis.title.textZh
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1807,9 +1807,9 @@ function initRelevanceChart(data){
|
|
|
type: (chartTheme&&chartTheme.lineOptionList[index].lineType) || 'spline',
|
|
|
dashStyle: (chartTheme&&chartTheme.lineOptionList[index].dashStyle)||'Solid',
|
|
|
yAxis: 0,
|
|
|
- name: data.ChartInfo.ChartName,
|
|
|
- nameZh: data.ChartInfo.ChartName,
|
|
|
- nameEn: data.ChartInfo.ChartNameEn,
|
|
|
+ name: item.Name||data.ChartInfo.ChartName,
|
|
|
+ nameZh: item.Name||data.ChartInfo.ChartName,
|
|
|
+ nameEn: item.NameEn||data.ChartInfo.ChartNameEn,
|
|
|
color: item.Color,
|
|
|
chartType: 'linear',
|
|
|
lineWidth: (chartTheme&&chartTheme.lineOptionList[index].lineWidth) || 3,
|