Commit 3206f0d5 authored by 陈龙's avatar 陈龙

feat: 历史曲线增加下载选项

parent 039cc0b2
...@@ -491,7 +491,7 @@ const returnXAxis = ({ ...@@ -491,7 +491,7 @@ const returnXAxis = ({
// let markPoint = showPoint ? minMaxMarkPoint(item, index, dataSource) : {}; // let markPoint = showPoint ? minMaxMarkPoint(item, index, dataSource) : {};
let markPoint = {}; let markPoint = {};
let _lineStyle = {}; let _lineStyle = {};
/* if (item.deviceType === '预测' && chartType === 'lineChart') { /* if (item.deviceType === '预测' && chartType === 'lineChart') {
markPoint = null; markPoint = null;
markLine = null; markLine = null;
_lineStyle = { _lineStyle = {
...@@ -1207,6 +1207,16 @@ const optionGenerator = ( ...@@ -1207,6 +1207,16 @@ const optionGenerator = (
tooltip, tooltip,
visualMap, visualMap,
...restOption, ...restOption,
toolbox: {
top:-5,
left: 80,
feature: {
dataZoom: {
yAxisIndex: 'none'
},
saveAsImage: {}
}
}
}; };
return _options; return _options;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment