修改测试问题
This commit is contained in:
@@ -113,14 +113,14 @@ const initChart = () => {
|
||||
|
||||
bottom: '20px',
|
||||
end: 100,
|
||||
filterMode: 'filter'
|
||||
filterMode: 'none'
|
||||
},
|
||||
{
|
||||
start: 0,
|
||||
height: 13,
|
||||
bottom: '20px',
|
||||
end: 100,
|
||||
filterMode: 'filter'
|
||||
filterMode: 'none'
|
||||
}
|
||||
// {
|
||||
// show: true,
|
||||
@@ -133,7 +133,7 @@ const initChart = () => {
|
||||
],
|
||||
color: props.options?.color || color,
|
||||
series: props.options?.series,
|
||||
...props.options?.options
|
||||
...setStep(props.options?.options)
|
||||
}
|
||||
// console.log(options.series,"获取x轴");
|
||||
handlerBar(options)
|
||||
@@ -251,6 +251,21 @@ const handlerXAxis = () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
// const setStep = (name: string) => {
|
||||
// const isShanBian = name.includes('闪变')
|
||||
// return isShanBian ? { step: 'end' as const } : { }
|
||||
// }
|
||||
const setStep = (options: any) => {
|
||||
if(options?.series){
|
||||
options.series.forEach((item: any) => {
|
||||
if(item.type === 'line' && item.name.includes('闪变')){
|
||||
item.step = 'end'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
return options
|
||||
}
|
||||
|
||||
let throttle: ReturnType<typeof setTimeout>
|
||||
// 动态计算table高度
|
||||
|
||||
Reference in New Issue
Block a user