...
|
...
|
@@ -375,7 +375,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' |
|
|
grid: [{
|
|
|
top: 20,
|
|
|
bottom: 45,
|
|
|
left: 30,
|
|
|
left: 40,
|
|
|
right: 5
|
|
|
}],
|
|
|
xAxis: [{
|
...
|
...
|
@@ -422,9 +422,22 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' |
|
|
}
|
|
|
}],
|
|
|
series: series,
|
|
|
dataZoom: [
|
|
|
{
|
|
|
type: 'inside'
|
|
|
}
|
|
|
],
|
|
|
}
|
|
|
echartObject.setOption(option)
|
|
|
|
|
|
const zoomSize = 6;
|
|
|
echartObject.on('click', function (params) {
|
|
|
echartObject.dispatchAction({
|
|
|
type: 'dataZoom',
|
|
|
startValue: xData[Math.max(params.dataIndex - zoomSize / 2, 0)],
|
|
|
endValue:
|
|
|
xData[Math.min(params.dataIndex + zoomSize / 2, yData.length - 1)]
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
/********************单独加载更多****************************/
|
|
|
function loadNoticeMoreChart(echartObject,xData,yData) {
|
...
|
...
|
|