[Bug] Vue3 + uniapp + 移动端H5 设置 dataZoom 属性后不生效 (type: 'inside'; // 水平滑动 start;end;)都不生效 #19856
Labels
bug
missing-demo
The author should provide a demo.
pending
We are not sure about whether this is a bug/new feature.
waiting-for: author
Version
5.4.3
Link to Minimal Reproduction
// prettier-ignore let dataAxis = ['点', '击', '柱', '子', '或', '者', '两', '指', '在', '触', '屏', '上', '滑', '动', '能', '够', '自', '动', '缩', '放']; // prettier-ignore let data = [22, 18, 19, 23, 29, 33, 31, 12, 12, 21, 20, 19, 10, 22, 33, 34, 18, 13, 15, 22]; let yMax = 5; let dataShadow = []; for (let i = 0; i < data.length; i++) { dataShadow.push(yMax); } option = { title: { text: '特性示例:渐变色 阴影 点击缩放', subtext: 'Feature Sample: Gradient Color, Shadow, Click Zoom' }, xAxis: { data: dataAxis, axisLabel: { color: '#999' }, axisTick: { show: true }, axisLine: { show: true }, }, yAxis: { axisLine: { show: false }, axisTick: { show: false }, axisLabel: { color: '#999' } }, grid: [ { left: '10%', right: '10%', bottom: 90 }, { left: '10%', right: '10%', height: 8, bottom: 8 } ], dataZoom: [ { type: 'inside', moveOnMouseMove: true, start: 70, end: 100 } ], series: [ { type: 'bar', showBackground: true, itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0, color: '#83bff6' }, { offset: 0.5, color: '#188df0' }, { offset: 1, color: '#188df0' } ]) }, emphasis: { itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0, color: '#2378f7' }, { offset: 0.7, color: '#2378f7' }, { offset: 1, color: '#83bff6' } ]) } }, data: data } ] };
Steps to Reproduce
Vue3 + uniapp + 移动端H5
Current Behavior
设置 dataZoom 属性后不生效
都不生效
dataZoom: [
{
type: 'inside',
moveOnMouseMove: true,
start: 70,
end: 100,
},
],
正常官方案例 web端设置上 dataZoom 属性 配置上 type: 'inside', 设置上 开始和结束 首先 渲染的时候 就会根据设置的 start: 40,
end: 100, 展示可视区域 比如 X轴一共17条数据 默认加载只展示 7条 然后 在H5中完全不生效 直接全部17条数据都加载出来了
Expected Behavior
希望能正常兼容 h5 水平滑动 就像K线图那样 默认展示7天 水平滑动查看历史数据
***上面发的案例 在web端确实可以滑动 生效 但在 Vue3 + uniapp + 移动端H5 不生效
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: