wuba / wuba/react-native-echarts

datazoom,showDataShadow=true,在滑动时会丢失。

Open
#274 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
967
Forks
35
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. 第一次渲染datazoom没问题,看到了数据
  2. 在datazoom 上滑动时,缩略图丢失。

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
演示视频
dataZoom: [ { type: 'slider', show: true, start: Math.max(0, dates.length - 30), // end: 100, height: 30, bottom: 10, left: 10, right: 10, zoomLock: true, brushSelect: false, moveOnMouseMove: false, preventDefaultMouseMove: true, handleSize: 0, realtime: true, filterMode: 'filter', showDataShadow: true, showDetail: false, // 添加以下关键配置 dataBackground: { lineStyle: { color: '#ccc', // 阴影线条颜色 width: 1 }, areaStyle: { color: 'rgba(150, 150, 150, 0.3)' // 阴影区域颜色 } }, backgroundColor: 'rgba(0,0,0,0)', // 透明背景 fillerColor: 'rgba(200, 200, 200, 0.2)', // 中间填充色 borderColor: '#ccc', handleStyle: { color: '#fff', borderColor: '#000' } } ]

Smartphone (please complete the following information):

  • Device: iPhone13
  • OS: 18.5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided dataZoom configuration and reproduce the issue on an iPhone 13 or equivalent environment, focusing on showDataShadow during slider movement. Trace the data shadow rendering and update path, then verify that the thumbnail remains visible while sliding with the reported options.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
data-visualization, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.