Merge branch 'feature-ui-20221205' into uat

This commit is contained in:
王博冉
2022-12-07 14:26:39 +08:00
2 changed files with 15 additions and 10 deletions

View File

@@ -88,15 +88,15 @@ const option = {
formatter: '{value}% '
},
},
dataZoom: [
{
type: 'slider',
zoomLock:true,
start: 0,
end: 100,
brushSelect:false,
}
],
// dataZoom: [
// {
// type: 'slider',
// zoomLock:true,
// start: 0,
// end: 100,
// brushSelect:false,
// }
// ],
// 系列列表,一个系列即可理解为一个图表,通过 type 决定所展示的图表类型。
series: [{
name: '太便宜', // 单个图表系列的 name, 和 legend 中的 data 对应

View File

@@ -191,7 +191,12 @@ const getListData = async(type)=>{
option.xAxis[0].max = xdate[xdate.length-1]
option.xAxis[1].min = Number(xdate[0])
option.xAxis[1].max = Number(xdate[xdate.length-1])
option.dataZoom = option.series[0].data.length>13?[{
type: 'slider',
start: 0,
end: 100,
}
]: []
// option.xAxis.data = xdate
// console.log(formateLine(chartData.line1,chartData.xdate))
// option.series[0].data = formateLine(chartData.line1,chartData.xdate)