[Bug] Tooltip performance issue with multiple "line" series on Windows + Chromium
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
The payload names no source files, only the linked CodePen reproduction and the workaround options axisPointer.zlevel, axisPointer.triggerEmphasis and series.emphasis.disabled. Start by running the CodePen on Windows Chromium with a Performance profile to see where the time goes when the cursor moves over 2,000-point line series at 700 px. Done means the axis pointer tracks the cursor smoothly without the emphasis workaround, in both the Canvas and SVG renderers.
索引モデルが issue の本文から書いたものです。
説明
Version
6.1.0
Link to Minimal Reproduction
https://codepen.io/kirchsuSICKAG/pen/PwpEBvV
Steps to Reproduce
- Use ECharts 6.1.0 with a current Chrome or Edge on Windows device.
- Create a line chart with tooltip.trigger: 'axis' and at least two line series, better visible on more.
- Use jagged data, such as independently generated random values between 0 and 100.
- Set the chart height to about 700 px and use 2,000 data points per series.
- Move the mouse across the plot area. Observe that the tooltip and axis pointer lag behind the cursor or move in visible jumps. The lag becomes worse as more line series are added.
- Repeat with
tooltip: { trigger: 'axis', showContent: false }. The axis pointer still lags, so the issue is not limited to displaying the tooltip content. - Repeat with DevTools open. The lag becomes more noticeable.
- For comparison, try a 300 px chart, one line series, gradual rather than jagged data, Firefox on Windows, or Chrome/Edge on macOS. These cases showed no lag in my tests.
For testing all this things out, have a look at my codepen example.
Current Behavior
When the mouse moves over the plot area, the tooltip and axis pointer visibly lag behind or jump instead of following the cursor smoothly, if using a Windows device in a chromium browser (Chrome / Edge). The lag is most noticeable the more jagged line series are used. It becomes more severe as the number of series, the chart height increases or the browser dev console is open.
The issue is reproducible with both the Canvas and SVG renderers. The axis pointer still lags when tooltip content is disabled with tooltip.showContent: false, so the issue is not limited to rendering the tooltip content.
In the tested configurations, the chart remained smooth with a 300 px height but lagged at 700 px. Jagged, abruptly changing data caused more lag than gradual data. Moving the series into separate value ranges did not eliminate the lag, so overlapping lines are not required to reproduce it. Opening DevTools makes the lag more noticeable.
The same chart was smooth in Firefox on Windows and in Chrome and Edge on macOS.
Workaround
In my reproduction, the lag is not reproducible by applying these options:
axisPointer: {
zlevel: 10,
triggerEmphasis: false
},
series: [{
// ...
emphasis: {
disabled: true
}
}]
### Expected Behavior
The tooltip and axis pointer should follow mouse movement smoothly across chart sizes and series counts for all browsers, without the need of disabling emphasis.
### Environment
```markdown
- OS:Windows
- Browser: Chrome and Edge
- Framework: all
Any additional comments?
Windows - Chrome
https://github.com/user-attachments/assets/8a19102a-48d3-4af5-8a2f-d5781501df83
Windows - Firefox
https://github.com/user-attachments/assets/bbdbf9b3-15ca-4f50-b90e-5dcce722fbd9
MAC - Chrome
- 主要言語
- TypeScript
- スター
- 67.7k
- フォーク
- 19.9k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/echarts のほかの issue
-
[Bug] String formatter templates only replace the first occurrence of `{a}`/`{b}`/`{c}`対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンen pending
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
-
[Bug] Inverse axis collapses the grid with outerBoundsContain when a tick is near the axis edge対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンen pending
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
en pending
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
en pending
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
[Bug] The zoom cursor in the toolbox area is incorrect対応中かも @waterWang が 98 日前に担当しました。 オープンbug en pending
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
pollen-robotics/reachy-mini-desktop-app#341 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
mike-north/AgentMonitors#648 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
vercel-labs/ui#700 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 2 日以内に返信