refactor: 坐标轴图表滚轮缩放优化

This commit is contained in:
junjie 2021-07-22 15:00:01 +08:00
parent 403ccd7215
commit f85db005e1

View File

@ -205,7 +205,31 @@ export const BASE_BAR = {
series: [], series: [],
dataZoom: [ 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: [], series: [],
dataZoom: [ 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: [], series: [],
dataZoom: [ 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
} }
] ]
} }