|
@@ -241,12 +241,12 @@ const setDefaultLineOptions = () => {
|
|
|
name,
|
|
|
color: item.ChartColor,
|
|
|
lineWidth: Number(item.ChartWidth)||(chartTheme&&chartTheme.lineOptionList[index].lineWidth)||1,
|
|
|
- marker: {
|
|
|
- enabled:chartTheme.lineOptionList[index].dataMark && chartTheme.lineOptionList[index].dataMark!='none',
|
|
|
+ marker:chartTheme && chartTheme.lineOptionList[index].dataMark && chartTheme.lineOptionList[index].dataMark!='none'?{
|
|
|
+ enabled:true,
|
|
|
symbol: chartTheme.lineOptionList[index].markType || 'circle',
|
|
|
fillColor:chartTheme.lineOptionList[index].markColor,
|
|
|
radius: chartTheme.lineOptionList[index].markSize
|
|
|
- },
|
|
|
+ }:{},
|
|
|
...predict_params
|
|
|
};
|
|
|
item.DataList = item.DataList || []
|
|
@@ -361,12 +361,12 @@ const setSeasonOptions = () => {
|
|
|
yAxis: 0,
|
|
|
name: j.ChartLegend,
|
|
|
lineWidth: (chartTheme&&chartTheme.lineOptionList[index].lineWidth) || 1,
|
|
|
- marker: {
|
|
|
- enabled:chartTheme.lineOptionList[index].dataMark && chartTheme.lineOptionList[index].dataMark!='none',
|
|
|
+ marker:chartTheme && chartTheme.lineOptionList[index].dataMark && chartTheme.lineOptionList[index].dataMark!='none'?{
|
|
|
+ enabled:true,
|
|
|
symbol: chartTheme.lineOptionList[index].markType || 'circle',
|
|
|
fillColor:chartTheme.lineOptionList[index].markColor,
|
|
|
radius: chartTheme.lineOptionList[index].markSize
|
|
|
- },
|
|
|
+ }:{},
|
|
|
...predict_params
|
|
|
};
|
|
|
const data_array = _.cloneDeep(j.DataList);
|