Merge pull request #286 from dataease/pr@dev@refactor_坐标轴图表滚轮缩放优化

refactor: 坐标轴图表滚轮缩放优化
This commit is contained in:
XiaJunjie2020 2021-07-22 16:20:09 +08:00 committed by GitHub
commit e2051479bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,7 +205,31 @@ export const BASE_BAR = {
series: [],
dataZoom: [
{
type: 'inside'
type: 'slider',
show: false,
xAxisIndex: [0],
start: 1,
end: 100
},
{
type: 'slider',
show: false,
yAxisIndex: [0],
left: '93%',
start: 1,
end: 100
},
{
type: 'inside',
xAxisIndex: [0],
start: 1,
end: 100
},
{
type: 'inside',
yAxisIndex: [0],
start: 1,
end: 100
}
]
}
@ -237,7 +261,31 @@ export const HORIZONTAL_BAR = {
series: [],
dataZoom: [
{
type: 'inside'
type: 'slider',
show: false,
xAxisIndex: [0],
start: 1,
end: 100
},
{
type: 'slider',
show: false,
yAxisIndex: [0],
left: '93%',
start: 1,
end: 100
},
{
type: 'inside',
xAxisIndex: [0],
start: 1,
end: 100
},
{
type: 'inside',
yAxisIndex: [0],
start: 1,
end: 100
}
]
}
@ -271,7 +319,31 @@ export const BASE_LINE = {
series: [],
dataZoom: [
{
type: 'inside'
type: 'slider',
show: false,
xAxisIndex: [0],
start: 1,
end: 100
},
{
type: 'slider',
show: false,
yAxisIndex: [0],
left: '93%',
start: 1,
end: 100
},
{
type: 'inside',
xAxisIndex: [0],
start: 1,
end: 100
},
{
type: 'inside',
yAxisIndex: [0],
start: 1,
end: 100
}
]
}